#12508 closed Bugs (fixed)

regression in boost recursive variant

Reported by: mike.gresens@… Owned by: Antony Polukhin
Milestone: Boost 1.64.0 Component: variant
Version: Boost 1.62.0 Severity: Regression
Keywords: Cc:



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

build with boost1.61: fine

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_> > > >&}’

Attachments (2)

test.cpp (2.5 KB) - added by mike.gresens@… 18 months ago.
sample code
errors.txt (12.2 KB) - added by mike.gresens@… 18 months ago.
compiler errors

Download all attachments as: .zip

Change History (5)

Changed 18 months ago by mike.gresens@…

Attachment: test.cpp added

sample code

Changed 18 months ago by mike.gresens@…

Attachment: errors.txt added

compiler errors

comment:1 Changed 15 months ago by Antony Polukhin

Milestone: To Be Determined
Owner: changed from ebf to Antony Polukhin
Status: newassigned

Fixed by Mikhail Maximov in e0b65c01. Fix will appear in Boost 1.64

comment:2 Changed 14 months ago by Antony Polukhin

Milestone: Boost 1.64.0

comment:3 Changed 11 months ago by Antony Polukhin

Resolution: fixed
Status: assignedclosed

Modify Ticket

Change Properties
Set your email in Preferences
as closed The owner will remain Antony Polukhin.
The resolution will be deleted.

Add Comment

E-mail address and name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.