//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // Adaptation to Boost of the libcxx // Copyright 2010 Vicente J. Botet Escriba // Distributed under the Boost Software License, Version 1.0. // See http://www.boost.org/LICENSE_1_0.txt #include #include #if !defined(BOOST_NO_CXX11_STATIC_ASSERT) #define NOTHING "" #endif template void test() { typedef boost::chrono::system_clock C; typedef boost::chrono::time_point T1; typedef boost::chrono::time_point T2; typedef boost::chrono::time_point Te; typedef typename boost::common_type::type Tc; BOOST_CHRONO_STATIC_ASSERT((boost::is_same::value), NOTHING, (T1, T2, Tc, Te)); } void testall() { test >, boost::chrono::duration >, boost::chrono::duration > >(); test >, boost::chrono::duration >, boost::chrono::duration > >(); test >, boost::chrono::duration >, boost::chrono::duration > >(); test >, boost::chrono::duration >, boost::chrono::duration > >(); }