Boost logo

Boost-Build :

From: Reece Dunn (msclrhd_at_[hidden])
Date: 2004-07-04 17:12:28


The following example does not compile with CodeWarrior 6.1:

#include <boost/iterator/reverse_iterator.hpp>

int main()
{
typedef boost::reverse_iterator< char * > revstr;
revstr::value_type ch = 'a';

return( 0 );
}

Is this just a problem with version 6.1 or is it a CodeWarrior problem? Here
is the output:

### mwcc Compiler:
# In:
D:\devel\libraries\Boost\1.31.0\boost\mpl\aux_\preprocessed\mwcw\apply.hpp
# From: reverse_iterator.cpp
# -----------------------------
# 14: struct apply0 : F
# Error: ^
# illegal struct/union/enum/class definition
# (instantiating: 'boost::reverse_iterator<char *>')
[snip]
# (instantiating:
#
'boost::mpl::apply0<boost::mpl::apply_if<boost::is_convertible<std::output_
# iterator_tag, std::output_iterator_tag>,
# boost::mpl::identity<boost::incrementable_traversal_tag>, void>>')
# (instantiating:
# 'boost::mpl::apply_if<boost::is_convertible<std::output_iterator_tag,
# std::output_iterator_tag>,
# boost::mpl::identity<boost::incrementable_traversal_tag>, void>')

Regards,
Reece

_________________________________________________________________
It's fast, it's easy and it's free. Get MSN Messenger today!
http://www.msn.co.uk/messenger

 


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk