// Copyright (c) 2006 Douglas Gregor // // Distributed under 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 struct visitor { template void operator()(const T&); }; int test_main(int, char*[]) { visitor vis; boost::visit_each(vis, boost::bind(std::plus(), _1)); return 0; }