Boost logo

Boost Users :

Subject: [Boost-users] is_dereferenceable.hpp fails to compile with Apple Clang 3.0
From: István Csanády (istvancsanady_at_[hidden])
Date: 2011-12-11 17:26:49


Hi All,

I am trying to use boost::iostreams. When I include
boost/iostreams/filtering_streambuf.hpp (even if I don't declare any
filtering_streambuf variables) I get the following compilation error:
is_dereferencable.hpp: Parse Issue: Expected unqualified-id

The problem is in this code:

template <class T>
  struct impl
  {
      static typename boost::remove_cv<T>::type& x;

      BOOST_STATIC_CONSTANT(
          bool
        , value = sizeof(is_dereferenceable_::check
BOOST_PREVENT_MACRO_SUBSTITUTION(BOOST_comma(*x,0))) == 1
      );
  };

Compiler: Apple Clang 3.0, with -std=c++0x flag

Any help would be greatly appreciated.

Thanks
Istvan


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net