2
0
mirror of https://github.com/boostorg/uuid.git synced 2026-01-19 04:42:16 +00:00

Remove compile-fail tests for basic_random_generator; it's copyable now if the underlying generator is

This commit is contained in:
Peter Dimov
2024-04-23 03:16:29 +03:00
parent 1d3b84382c
commit a783b698a2
3 changed files with 0 additions and 39 deletions

View File

@@ -117,9 +117,6 @@ run test_sha1.cpp ;
# compile-fail tests
compile-fail compile-fail/basic_random_generator_no_copy_assign.cpp ;
compile-fail compile-fail/basic_random_generator_no_copy_ctor.cpp ;
compile-fail compile-fail/random_generator_no_copy_assign.cpp ;
compile-fail compile-fail/random_generator_no_copy_ctor.cpp ;

View File

@@ -1,18 +0,0 @@
// (c) Copyright Andrey Semashev 2018
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// The test verifies that basic_random_generator is not copy assignable
#include <boost/uuid/random_generator.hpp>
#include <boost/random/linear_congruential.hpp>
int main()
{
boost::uuids::basic_random_generator<boost::rand48> uuid_gen1, uuid_gen2;
uuid_gen2 = uuid_gen1;
return 1;
}

View File

@@ -1,18 +0,0 @@
// (c) Copyright Andrey Semashev 2018
// Distributed under the Boost Software License, Version 1.0. (See
// accompanying file LICENSE_1_0.txt or copy at
// https://www.boost.org/LICENSE_1_0.txt)
// The test verifies that basic_random_generator is not copy constructible
#include <boost/uuid/random_generator.hpp>
#include <boost/random/linear_congruential.hpp>
int main()
{
boost::uuids::basic_random_generator<boost::rand48> uuid_gen1;
boost::uuids::basic_random_generator<boost::rand48> uuid_gen2(uuid_gen1);
return 1;
}