2
0
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:
Peter Dimov
2026-01-13 17:46:30 +02:00
parent 6b0dc88eef
commit aa6c1a7985

View File

@@ -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 );
}