json icon indicating copy to clipboard operation
json copied to clipboard

conversion to vector of bool fails

Open journeytosilius opened this issue 4 years ago • 1 comments

error: no matching function for call to 'value_to_impl(boost::json::value_to_tag<std::vector<bool> >, const

Version of Boost

#define BOOST_LIB_VERSION "1_76"

Steps necessary to reproduce the problem

Given an json array of bool, convert to vector of bool cc = value_to<vector<bool>>(jv.at(0).at("cc"));

journeytosilius avatar Aug 29 '21 22:08 journeytosilius

+1

https://github.com/boostorg/json/blob/6fa272b57442074eb04c47f5a5b8bdabbb01fe0a/test/parse_into.cpp#L142-L144

pdimov avatar Oct 07 '21 23:10 pdimov