Ticket #10830: param_not_found_static_instance.patch
File param_not_found_static_instance.patch, 868 bytes (added by , 6 years ago) |
---|
-
named_function_params.hpp
227 227 } 228 228 }; 229 229 230 struct param_not_found {}; 230 struct param_not_found { 231 static param_not_found& instance() 232 { 233 static param_not_found instance_; 234 return instance_; 235 } 236 }; 231 237 232 238 template <typename Tag, typename Args> 233 239 struct get_param_type: … … 237 243 inline 238 244 const typename lookup_named_param_def<Tag, Args, param_not_found>::type& 239 245 get_param(const Args& p, Tag) { 240 return lookup_named_param_def<Tag, Args, param_not_found>::get(p, param_not_found ());246 return lookup_named_param_def<Tag, Args, param_not_found>::get(p, param_not_found::instance()); 241 247 } 242 248 243 249 template <class P, class Default>