Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc 6.3.0

Options
Warnings
Boost 1.69.0
C++11(GNU)
no pedantic

Author

anonymous

about 6 years ago

why.cpp

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-6.3.0/include -std=gnu++11
In file included from why.cpp:6:0,
                 from prog.cc:3:
/opt/wandbox/boost-1.69.0/gcc-6.3.0/include/boost/archive/iterators/remove_whitespace.hpp: In instantiation of 'class boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >':
/opt/wandbox/gcc-6.3.0/include/c++/6.3.0/bits/stl_iterator_base_types.h:162:12:   required from 'struct std::iterator_traits<boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >'
/opt/wandbox/boost-1.69.0/gcc-6.3.0/include/boost/iterator/iterator_traits.hpp:23:65:   required from 'struct boost::iterators::iterator_value<boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > > >'
why.cpp:11:93:   required from here
/opt/wandbox/boost-1.69.0/gcc-6.3.0/include/boost/archive/iterators/remove_whitespace.hpp:133:7: warning: 'boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >' has a field 'boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >::<anonymous>' whose type uses the anonymous namespace [-Wsubobject-linkage]
 class remove_whitespace :
       ^~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.69.0/gcc-6.3.0/include/boost/archive/iterators/remove_whitespace.hpp:133:7: warning: 'boost::archive::iterators::remove_whitespace<__gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >' has a base 'boost::archive::iterators::filter_iterator<{anonymous}::remove_whitespace_predicate<char>, __gnu_cxx::__normal_iterator<const char*, std::__cxx11::basic_string<char> > >' whose type uses the anonymous namespace [-Wsubobject-linkage]
Exit Code:
0