From fcc7af42a0f674bf7b9d4e7e603df15112521ee5 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 30 Dec 2000 11:28:30 +0000 Subject: [PATCH] added directure structure proposal [SVN r8504] --- include/boost/detail/ob_type_traits.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/include/boost/detail/ob_type_traits.hpp b/include/boost/detail/ob_type_traits.hpp index bd59a68..31845c1 100644 --- a/include/boost/detail/ob_type_traits.hpp +++ b/include/boost/detail/ob_type_traits.hpp @@ -126,16 +126,16 @@ namespace detail{ no_result is_same_helper(...); } -template struct is_reference; -template struct is_same -{ +template struct is_reference; +template struct is_same +{ private: static T t; static U u; public: enum{ value = (sizeof(detail::yes_result) == sizeof(detail::is_same_helper(&t,&u))) & (is_reference::value == is_reference::value) - & (sizeof(T) == sizeof(U)) }; + & (sizeof(T) == sizeof(U)) }; }; template struct is_void{ enum{ value = false }; };