diff --git a/test/compile-fail/random_provder_no_copy_ctor.cpp b/test/compile-fail/random_provder_no_copy_ctor.cpp new file mode 100644 index 0000000..a58e6f4 --- /dev/null +++ b/test/compile-fail/random_provder_no_copy_ctor.cpp @@ -0,0 +1,18 @@ +// (c) Copyright Andrey Semashev 2018 +// (c) Copyright Peter Dimov 2024 + +// 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 random_generator is not copy constructible + +#include + +int main() +{ + boost::uuids::detail::random_provider prov1; + boost::uuids::detail::random_provider prov2(prov1); + + return 1; +} diff --git a/test/compile-fail/random_provider_no_copy_assign.cpp b/test/compile-fail/random_provider_no_copy_assign.cpp new file mode 100644 index 0000000..4c3e2e8 --- /dev/null +++ b/test/compile-fail/random_provider_no_copy_assign.cpp @@ -0,0 +1,18 @@ +// (c) Copyright Andrey Semashev 2018 +// (c) Copyright Peter Dimov 2024 + +// 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 random_generator is not copy assignable + +#include + +int main() +{ + boost::uuids::detail::random_provider prov1, prov2; + prov2 = prov1; + + return 1; +}