//===----------------------------------------------------------------------===// // // 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. // //===----------------------------------------------------------------------===// // // template // struct common_type, chrono::time_point> // { // typedef chrono::time_point::type> type; // }; #include template void test() { typedef std::chrono::system_clock C; typedef std::chrono::time_point T1; typedef std::chrono::time_point T2; typedef std::chrono::time_point Te; typedef typename std::common_type::type Tc; static_assert((std::is_same::value), ""); } int main() { test >, std::chrono::duration >, std::chrono::duration > >(); test >, std::chrono::duration >, std::chrono::duration > >(); test >, std::chrono::duration >, std::chrono::duration > >(); test >, std::chrono::duration >, std::chrono::duration > >(); }