[Boost-bugs] [Boost C++ Libraries] #11488: flat_map and value_type

Subject: [Boost-bugs] [Boost C++ Libraries] #11488: flat_map and value_type
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-07-21 08:27:22

#11488: flat_map and value_type
 Reporter: gast128@… | Owner: igaztanaga
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: container
  Version: Boost 1.57.0 | Severity: Problem
 Keywords: |
 There is a problem with the value_type typedef. It is a typedef of
 std::pair<Key, Value> but shouldn't it be std::pair<const Key, Value>?

 typedef boost::unordered_map<int, string> Int2StringUmap;
 typedef boost::container::flat_map<int, string> Int2StringFmap;

 static_assert(std::is_same<Int2StringUmap::value_type, std::pair<const
 int, string>>::value, ""); //ok
 static_assert(std::is_same<Int2StringFmap::value_type, std::pair<const
 int, string>>::value, ""); //not ok

 Maybe already reported, but I couldn't find it in the svn.

Ticket URL: <https://svn.boost.org/trac/boost/ticket/11488>
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:18 UTC