void test() { typedef boost::chrono::system_clock C; typedef boost::chrono::time_point<C, D1> T1; typedef boost::chrono::time_point<C, D2> T2; typedef boost::chrono::time_point<C, De> Te; typedef typename boost::common_type<T1, T2>::type Tc; BOOST_CHRONO_STATIC_ASSERT((boost::is_same<Tc, Te>::value), NOTHING, (T1, T2, Tc, Te)); }
void test() { { boost::detail::winapi::LARGE_INTEGER_ a; LARGE_INTEGER b; BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::LARGE_INTEGER_)==sizeof(LARGE_INTEGER) ), NOTHING, (boost::detail::winapi::LARGE_INTEGER_, LARGE_INTEGER)); BOOST_TEST(( sizeof(a.QuadPart)==sizeof(b.QuadPart) )); BOOST_CHRONO_STATIC_ASSERT(( offsetof(boost::detail::winapi::LARGE_INTEGER_, QuadPart)==offsetof(LARGE_INTEGER, QuadPart) ), NOTHING, (boost::detail::winapi::LARGE_INTEGER_, LARGE_INTEGER)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same< BOOST_TYPEOF(a.QuadPart), BOOST_TYPEOF(b.QuadPart) >::value ), NOTHING, (boost::detail::winapi::LARGE_INTEGER_, LARGE_INTEGER)); } BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::BOOL_)==sizeof(BOOL) ), NOTHING, (boost::detail::winapi::BOOL_, BOOL)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same<boost::detail::winapi::BOOL_,BOOL>::value ), NOTHING, (boost::detail::winapi::BOOL_, BOOL)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::DWORD_)==sizeof(DWORD) ), NOTHING, (boost::detail::winapi::DWORD_, DWORD)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same<boost::detail::winapi::DWORD_,DWORD>::value ), NOTHING, (boost::detail::winapi::DWORD_, DWORD)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::HANDLE_)==sizeof(HANDLE) ), NOTHING, (boost::detail::winapi::HANDLE_, HANDLE)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same<boost::detail::winapi::HANDLE_,HANDLE>::value ), NOTHING, (boost::detail::winapi::HANDLE_, HANDLE)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::LONG_)==sizeof(LONG) ), NOTHING, (boost::detail::winapi::LONG_, LONG)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same<boost::detail::winapi::LONG_,LONG>::value ), NOTHING, (boost::detail::winapi::LONG_, LONG)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::LONGLONG_)==sizeof(LONGLONG) ), NOTHING, (boost::detail::winapi::LONGLONG_, LONGLONG)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same<boost::detail::winapi::LONGLONG_,LONGLONG>::value ), NOTHING, (boost::detail::winapi::LONGLONG_, LONGLONG)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::ULONG_PTR_)==sizeof(ULONG_PTR) ), NOTHING, (boost::detail::winapi::ULONG_PTR_, ULONG_PTR)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same<boost::detail::winapi::ULONG_PTR_,ULONG_PTR>::value ), NOTHING, (boost::detail::winapi::ULONG_PTR_, ULONG_PTR)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::PLARGE_INTEGER_)==sizeof(PLARGE_INTEGER) ), NOTHING, (boost::detail::winapi::PLARGE_INTEGER_, PLARGE_INTEGER)); //~ BOOST_CHRONO_STATIC_ASSERT(( //~ boost::is_same<boost::detail::winapi::PLARGE_INTEGER_,PLARGE_INTEGER>::value //~ ), NOTHING, (boost::detail::winapi::PLARGE_INTEGER_, PLARGE_INTEGER)); { BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::FILETIME_)==sizeof(FILETIME) ), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME)); BOOST_CHRONO_STATIC_ASSERT(( sizeof(boost::detail::winapi::PFILETIME_)==sizeof(PFILETIME) ), NOTHING, (boost::detail::winapi::PFILETIME_, PFILETIME)); boost::detail::winapi::FILETIME_ a; FILETIME b; BOOST_TEST(( sizeof(a.dwLowDateTime)==sizeof(b.dwLowDateTime) )); BOOST_TEST(( sizeof(a.dwHighDateTime)==sizeof(b.dwHighDateTime) )); BOOST_CHRONO_STATIC_ASSERT(( offsetof(boost::detail::winapi::FILETIME_, dwLowDateTime)==offsetof(FILETIME, dwLowDateTime) ), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME)); BOOST_CHRONO_STATIC_ASSERT(( offsetof(boost::detail::winapi::FILETIME_, dwHighDateTime)==offsetof(FILETIME, dwHighDateTime) ), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same< BOOST_TYPEOF(a.dwLowDateTime), BOOST_TYPEOF(b.dwLowDateTime) >::value ), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME)); BOOST_CHRONO_STATIC_ASSERT(( boost::is_same< BOOST_TYPEOF(a.dwHighDateTime), BOOST_TYPEOF(b.dwHighDateTime) >::value ), NOTHING, (boost::detail::winapi::FILETIME_, FILETIME)); } // BOOST_CHRONO_STATIC_ASSERT(( // GetLastError==boost::detail::winapi::::GetLastError // ), NOTHING, ()); }