diff --git a/include/boost/graph/named_function_params.hpp b/include/boost/graph/named_function_params.hpp index 29573873..c756622e 100644 --- a/include/boost/graph/named_function_params.hpp +++ b/include/boost/graph/named_function_params.hpp @@ -441,19 +441,8 @@ namespace boost { } -#if 0 - template - const Default& - choose_param(const detail::error_property_not_found&, const Default& d) - { return d; } - - template - const P& - choose_param(const P& param, const Default&) { return param; } -#else - // MSVC++ workaround - namespace detail { + // MSVC++ workaround template struct choose_param_helper { template struct result { typedef Param type; }; @@ -474,7 +463,6 @@ namespace boost { choose_param(const P& param, const Default& d) { return detail::choose_param_helper

::apply(param, d); } -#endif template inline bool is_default_param(const T&) { return false; }