// (C) Copyright John Maddock 2000. // Use, modification and distribution are subject to the // Boost Software License, Version 1.0. (See accompanying file // LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) #include #include #include template struct if_test { typedef typename boost::mpl::if_< boost::is_void, int, T>::type type; }; if_test::type t1 = 0; if_test::type t2 = 0; int main() { return (int)(t1 + t2); }