Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22192

How to silence "whose type uses the anonymous namespace [-Werror]" gcc version 4.8.2

$
0
0

In one of my project's header file, the following line is included in a inline method

typedef boost::archive::iterators::transform_width<boost::archive::iterators::binary_from_base64<      boost::archive::iterators::remove_whitespace<std::string::const_iterator>>, 8, 6> Base64ToBin;

When I compile this with gcc 4.8.2 I'm getting the following error:

error: ‘boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::basic_string > >’ has a field ‘boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::basic_string > >::’ whose type uses the anonymous namespace [-Werror]

I'm really hitting hard but could not resolve this issue, also from the link1 and link2 it looks like it is an issue with lower version of gcc. Can somebody suggests how to silence this warning or get over with that. I'm using -Werror flag compilation.


Viewing all articles
Browse latest Browse all 22192

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>