
Thank you Ion! Best /Viktor On Mon, Aug 13, 2018 at 12:44 AM Ion GaztaƱaga via Boost < boost@lists.boost.org> wrote:
On 12/08/2018 18:26, Viktor Sehr via Boost wrote:
On MSVC (latest) the following code yields a compile error with flat_map, but not with std::map. I do not have the knowledge of std::less<> to resolve what causes the error.
auto fm = boost::container::flat_map<std::string, int, std::less<> >{}; auto m = std::map<std::string, int, std::less<> >{}; auto k = std::string_view{ "my_key" }; auto x = m.find(k); // Compiles auto y = fm.find(k); // Does NOT compile
Looks like a bug in the is_transparent trait. It seems that used transparent comparator in tests was not detecting the issue. Working on a patch.
Best,
Ion
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost