boostorg / range

Boost.org range module
http://boost.org/libs/range
43 stars 101 forks source link

error:previous definition of 'struct boost::is_unsigned< ::boost::long_long_type>:public false_type{}' g++ version 5.4.0 How can I fix it? #113

Open GitSoftwareNow opened 4 years ago

GitSoftwareNow commented 4 years ago

In file included from /usr/include/boost/type_traits/make_unsigned.hpp:13:0, from /usr/include/boost/range/size_type.hpp:24, from /usr/include/boost/range/size.hpp:21, from /usr/include/boost/range/functions.hpp:20, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/range/iterator_range.hpp:13, from /usr/include/boost/range/adaptor/transformed.hpp:16, from /usr/include/boost/range/adaptor/map.hpp:14, from /home/kylin/桌面/hyperscan/hyperscan/hyperscan/src/nfa/mcclellancompile.cpp:63: /usr/include/boost/type_traits/is_signed.hpp:126:20: error: redefinition of ‘struct boost::is_signed’ template <> struct is_signed : public true_type{}; ^ /usr/include/boost/type_traits/is_signed.hpp:125:20: error: previous definition of ‘struct boost::is_signed’ template <> struct is_signed< ::boost::long_long_type> : public true_type{}; ^ In file included from /usr/include/boost/type_traits/make_unsigned.hpp:14:0, from /usr/include/boost/range/size_type.hpp:24, from /usr/include/boost/range/size.hpp:21, from /usr/include/boost/range/functions.hpp:20, from /usr/include/boost/range/iterator_range_core.hpp:38, from /usr/include/boost/range/iterator_range.hpp:13, from /usr/include/boost/range/adaptor/transformed.hpp:16, from /usr/include/boost/range/adaptor/map.hpp:14, from /home/kylin/桌面/hyperscan/hyperscan/hyperscan/src/nfa/mcclellancompile.cpp:63: /usr/include/boost/type_traits/is_unsigned.hpp:131:20: error: redefinition of ‘struct boost::is_unsigned’ template <> struct is_unsigned : public false_type{}; ^ /usr/include/boost/type_traits/is_unsigned.hpp:130:20: error: previous definition of ‘struct boost::is_unsigned’ template <> struct is_unsigned< ::boost::long_long_type> : public false_type{};

/home/kylin/桌面/hyperscan/hyperscan/hyperscan/src/nfa/mcclellancompile.cpp line 63

include <boost/range/adaptor/map.hpp>