test_10778.cpp 521 B

12345678910111213141516171819
  1. // Copyright 2015 Vicente J. Botet Escriba
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // See http://www.boost.org/LICENSE_1_0.txt
  4. // See http://www.boost.org/libs/chrono for documentation.
  5. //#define BOOST_CHRONO_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0
  6. #include <boost/chrono.hpp>
  7. #include <boost/chrono/chrono_io.hpp>
  8. #include <atomic>
  9. void test()
  10. {
  11. std::atomic<boost::chrono::milliseconds> ms; // error C2338: atomic<T> requires T to be trivially copyable.
  12. }
  13. int main() {
  14. test();
  15. return 1;
  16. }