• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 
6 //#define BOOST_CHRONO_PROVIDES_DEPRECATED_IO_SINCE_V2_0_0
7 #include <boost/chrono.hpp>
8 #include <boost/chrono/chrono_io.hpp>
9 #include <atomic>
10 
test()11 void test()
12 {
13   std::atomic<boost::chrono::milliseconds> ms; // error C2338: atomic<T> requires T to be trivially copyable.
14 }
15 
main()16 int main() {
17   test();
18   return 1;
19 }
20