test_11006.cpp 545 B

123456789101112131415161718192021
  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. #define BOOST_CHRONO_VERSION 2
  7. #include <iostream>
  8. #include <boost/chrono/io/time_point_io.hpp>
  9. int main() {
  10. {
  11. boost::chrono::time_fmt_io_saver<> tmp(std::cout);
  12. }
  13. {
  14. boost::chrono::time_fmt_io_saver<> tmp(std::cout, "%Y-%m-%d %H:%M:%S");
  15. }
  16. return 0;
  17. }