Boost logo

Boost :

From: Jonathan Turkanis (technews_at_[hidden])
Date: 2005-05-26 00:32:39


Hi,

The following program produces a compiler error on CodeWarrior 9.4 (see error
messages at end):

    #include <boost/noncopyable.hpp>
    #include <boost/type_traits.hpp>

    int main()
    {
        bool b = boost::is_pointer<boost::noncopyable>::value;
    }

If I change this to:

    #include <boost/noncopyable.hpp>
    #include <msl_utility>

    int main()
    {
        bool b = Metrowerks::is_pointer<boost::noncopyable>::value;
    }

everything is fine.

What's up?

Jonathan

---------------------------

Error : illegal access from 'boost::noncopyable_::noncopyable' to
protected/private member 'boost::noncopyable_::noncopyable::noncopyable(const
boost::noncopyable_::noncopyable &)'
 (point of instantiation: 'main()')
  (instantiating: 'boost::is_pointer<boost::noncopyable_::noncopyable>')
   (instantiating:
'boost::detail::is_pointer_impl<boost::noncopyable_::noncopyable>')
    (instantiating:
'boost::is_member_pointer<boost::noncopyable_::noncopyable>')
     (instantiating:
'boost::is_member_function_pointer<boost::noncopyable_::noncopyable>')
      (instantiating:
'boost::detail::is_member_function_pointer_impl<boost::noncopyable_::noncopyable
>')
       (instantiating:
'boost::detail::is_mem_fun_pointer_select<false>::result_<boost::noncopyable_::n
oncopyable>')
is_member_function_pointer.hpp line 70 ));


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk