[Boost-bugs] [Boost C++ Libraries] #12508: regression in boost recursive variant

Subject: [Boost-bugs] [Boost C++ Libraries] #12508: regression in boost recursive variant
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2016-10-08 13:55:18


#12508: regression in boost recursive variant
------------------------------+------------------------
 Reporter: mike.gresens@… | Owner: ebf
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: variant
  Version: Boost 1.62.0 | Severity: Regression
 Keywords: |
------------------------------+------------------------
 Hi,

 see added sample code (std=c++14).

 build with boost1.61: fine[[BR]]

 build with boost1.62: broken

 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.2) 5.4.0 20160609

 Most important compiler errors (i think):


 {{{
 source/test.cpp:104:46: required from here
 /usr/include/c++/5/bits/hashtable_policy.h:85:34: error: no match for call
 to ‘(const hessian::hash) (const boost::recursive_variant_&)’
   noexcept(declval<const _Hash&>()(declval<const _Key&>()))>
                                   ^
 source/test.cpp:59:9: note: candidate: size_t
 hessian::hash::operator()(const value_t&) const
   size_t operator()(const value_t& value) const noexcept;
          ^
 source/test.cpp:59:9: note: no known conversion for argument 1 from
 â€˜const boost::recursive_variant_’ to ‘const value_t& {aka const
 boost::variant<boost::detail::variant::recursive_flag<boost::blank>, bool,
 int, long int, double, boost::posix_time::ptime,
 std::__cxx11::basic_string<char, std::char_traits<char>,
 std::allocator<char> >, std::__cxx11::basic_string<unsigned char,
 std::char_traits<unsigned char>, std::allocator<unsigned char> >,
 std::vector<boost::recursive_variant_,
 std::allocator<boost::recursive_variant_> >,
 std::unordered_map<boost::recursive_variant_, boost::recursive_variant_,
 hessian::hash, std::equal_to<boost::recursive_variant_>,
 std::allocator<std::pair<const boost::recursive_variant_,
 boost::recursive_variant_> > >,
 std::unordered_map<std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> >, boost::recursive_variant_,
 std::hash<std::__cxx11::basic_string<char, std::char_traits<char>,
 std::allocator<char> > >, std::equal_to<std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> > >,
 std::allocator<std::pair<const std::__cxx11::basic_string<char,
 std::char_traits<char>, std::allocator<char> >, boost::recursive_variant_>
> > >&}’

 }}}

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/12508>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:20 UTC