Boost logo

Boost :

From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-05-11 05:18:02

Russell Hind wrote:
> Looks like this errors have gone now. The only errors I'm getting now
> are pasted below. The print_helper_t<char[4]> errors may be related to
> errors Eric Niebler solved in BOOST_FOREACH when dealing with
> conversions of char arrays and Borland. Perhaps he can help with these?

This shows the problem with Borland and arrays. The following code outputs

const char*

I'm not sure how you get around this, though.



#include <iostream>
#include <typeinfo>

template <typename T>
void print_helper_t(T const & t)
   std::cout << typeid(T).name() << std::endl << typeid(t).name() <<

int main(int argc, char* argv[])
char Hello[5] = {'H','e','l','l','o'};
   return 0;

Boost list run by bdawes at, gregod at, cpdaniel at, john at