Opened 7 years ago
Closed 7 years ago
#12014 closed Bugs (fixed)
boost::container::set can not insert const (ref) range
Reported by: | Owned by: | Ion Gaztañaga | |
---|---|---|---|
Milestone: | To Be Determined | Component: | container |
Version: | Boost 1.60.0 | Severity: | Problem |
Keywords: | boost::container::set | Cc: |
Description
Let's say we have some simple code here.
boost::container::set<int> s; boost::container::set<int> const sp; s.insert(boost::begin(sp), boost::end(sp));
This insert call will cause "ambiguous call to overloaded function".
Note:
See TracTickets
for help on using tickets.
Thanks for the report. Fixed in:
https://github.com/boostorg/container/commit/a7158c7975879566b9bc1048d242aed0b2971ab2
but it also needs the following commit in Boost.Move:
https://github.com/boostorg/move/commit/d247eea058da683f66926963b5544e628e5a1bb1