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:
@@ -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 ;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user