mirror of https://github.com/CGAL/cgal
Do not return a const& for Named Parameters' default values
Since 'd' is in general some default constructed value, things can get weird, for example with default constructed std::function
This commit is contained in:
parent
4ca465a81f
commit
ae44cf3ff9
|
|
@ -204,8 +204,7 @@ get_parameter(const Named_function_parameters<T, Tag, Base>& np, Query_tag tag)
|
|||
}
|
||||
|
||||
template <typename D>
|
||||
const D&
|
||||
choose_parameter(const internal_np::Param_not_found&, const D& d)
|
||||
D choose_parameter(const internal_np::Param_not_found&, const D& d)
|
||||
{
|
||||
return d;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue