1 // Boost.TypeErasure library
3 // Copyright 2011 Steven Watanabe
5 // Distributed under the Boost Software License Version 1.0. (See
6 // accompanying file LICENSE_1_0.txt or copy at
7 // http://www.boost.org/LICENSE_1_0.txt)
11 #ifndef BOOST_TYPE_ERASURE_STATIC_BINDING_HPP_INCLUDED
12 #define BOOST_TYPE_ERASURE_STATIC_BINDING_HPP_INCLUDED
15 namespace type_erasure {
18 * Represents a mapping from placeholders to the actual types
21 * \pre @c Map must be an MPL map whose keys are placeholders.
24 struct static_binding {};
27 * A convenience function to prevent constructor calls
28 * from being parsed as function declarations.
31 static_binding<Map> make_binding() { return static_binding<Map>(); }