Compile error with low_bits_mask_t

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Compile error with low_bits_mask_t

Boost - Users mailing list

I discovered a compile issue when using boosts integer_mask.
The following simple program compiles fine with clang but fails with gcc.

#include <iostream>
#include <boost/integer.hpp>
#include <boost/integer/integer_mask.hpp>

int main()
    typedef boost::low_bits_mask_t<2> mask_type_t;
    std::cout << mask_type_t::sig_bits << std::endl;
    return 0;

I took both clang and gcc from the svn trunk and boost in version 1.63.

I did not have the time yet to dig through the boost implementation but I could not find anything in the issue tracker.
So is this a compiler error of gcc or is this a bug in boost.
And the answer sounds reasonable to me that this is a bug in boost.

Can anyone confirm this? And why does clang accept this?


Boost-users mailing list
[hidden email]