|
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
char[5]
const char*
I'm not sure how you get around this, though.
Cheers
Russell
#include <iostream>
#include <typeinfo>
template <typename T>
void print_helper_t(T const & t)
{
std::cout << typeid(T).name() << std::endl << typeid(t).name() <<
std::endl;
}
int main(int argc, char* argv[])
{
char Hello[5] = {'H','e','l','l','o'};
print_helper_t(Hello);
return 0;
}
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk