mirror of
https://github.com/boostorg/container.git
synced 2026-01-19 04:02:17 +00:00
Add minimal test to make sure boost iterator-like iterators are compatible with Boost.Container. Example taken from Trac 12698 (https://svn.boost.org/trac10/ticket/12698)
This commit is contained in:
13
test/boost_iterator_comp_test.cpp
Normal file
13
test/boost_iterator_comp_test.cpp
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <boost/container/string.hpp>
|
||||
#include <boost/archive/iterators/binary_from_base64.hpp>
|
||||
|
||||
int main()
|
||||
{
|
||||
using String = boost::container::string;
|
||||
using Iterator = boost::archive::iterators::binary_from_base64<String::iterator>;
|
||||
|
||||
String s;
|
||||
s.resize(111);
|
||||
String s2;
|
||||
s2.assign(Iterator{s.begin()},Iterator{s.end()});
|
||||
}
|
||||
Reference in New Issue
Block a user