mirror of
https://github.com/boostorg/uuid.git
synced 2026-01-19 16:52:14 +00:00
std::back_insert_iterator's value_type is void smh
This commit is contained in:
@@ -6,16 +6,16 @@
|
||||
#include <boost/uuid/uuid_io.hpp>
|
||||
#include <boost/core/lightweight_test.hpp>
|
||||
#include <string>
|
||||
#include <iterator>
|
||||
|
||||
using namespace boost::uuids;
|
||||
|
||||
template<class Ch> void test( uuid const& u, Ch const* expected )
|
||||
{
|
||||
std::basic_string<Ch> str;
|
||||
std::basic_string<Ch> str( 36, {} );
|
||||
|
||||
to_chars( u, std::back_inserter( str ) );
|
||||
auto last = to_chars( u, str.begin() );
|
||||
|
||||
BOOST_TEST( last == str.end() );
|
||||
BOOST_TEST( str == expected );
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user