|
Boost : |
From: Russell Hind (rh_gmane_at_[hidden])
Date: 2005-03-09 08:09:56
Has anyone tried BOOST_FOREACH with bcc32-5.6.4? I've just tried the
example
BOOST_FOREACH(char ch, "Hello")
{
std::cout << ch;
}
And get a string of errors of the following: (line 11 of main.cpp is the
BOOST_FOREACH line). I'd really like to be able to use this library so
if anyone can give any help in getting it to work, it would be really
useful.
Thanks
Russell
[C++] main.cpp(1):
[C++ Error] main.cpp(11): E2354 Two operands must evaluate to the same type
[C++ Warning] main.cpp(11): W8032 Temporary used for parameter 1 in call
to 'boost::for_each::boost::for_each::container<char
*,boost::mpl::false_> wrap<char *>(char * &)'
[C++ Error] main.cpp(11): E2354 Two operands must evaluate to the same type
[C++ Error] main.cpp(11): E2285 Could not find a match for
'boost::for_each::contain<T>(undefined,bool,undefined)'
[C++ Warning] main.cpp(11): W8032 Temporary used for parameter 1 in call
to 'boost::for_each::boost::for_each::container<char
*,boost::mpl::false_> wrap<char *>(char * &)'
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk