// (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 template int dispatch_test_imp(const boost::mpl::bool_&) { return 0; } template int dispatch_test_imp(const boost::mpl::bool_&) { return 1; } template int dispatch_test() { return dispatch_test_imp(boost::is_void()); } int main() { return (dispatch_test() == 1) && (dispatch_test() == 0) ? 0 : 1; }