basic_random_generator_no_copy_ctor.cpp 540 B

123456789101112131415161718
  1. // (c) Copyright Andrey Semashev 2018
  2. // Distributed under the Boost Software License, Version 1.0. (See
  3. // accompanying file LICENSE_1_0.txt or copy at
  4. // https://www.boost.org/LICENSE_1_0.txt)
  5. // The test verifies that basic_random_generator is not copy constructible
  6. #include <boost/uuid/random_generator.hpp>
  7. #include <boost/random/linear_congruential.hpp>
  8. int main()
  9. {
  10. boost::uuids::basic_random_generator<boost::rand48> uuid_gen1;
  11. boost::uuids::basic_random_generator<boost::rand48> uuid_gen2(uuid_gen1);
  12. return 1;
  13. }