mirror of
https://github.com/boostorg/parameter.git
synced 2026-01-19 04:22:13 +00:00
Merge pull request #99 from Lastique/fix_arg_with_default_rvalue
Fix argument value selection with an rvalue default
This commit is contained in:
@@ -295,6 +295,15 @@ namespace boost { namespace parameter { namespace aux {
|
||||
return this->get_value();
|
||||
}
|
||||
|
||||
template <typename Default>
|
||||
inline BOOST_CONSTEXPR reference
|
||||
operator[](
|
||||
::boost::parameter::aux::default_r_<key_type,Default> const&
|
||||
) const
|
||||
{
|
||||
return this->get_value();
|
||||
}
|
||||
|
||||
template <typename F>
|
||||
inline BOOST_CONSTEXPR reference
|
||||
operator[](
|
||||
@@ -662,7 +671,7 @@ namespace boost { namespace parameter { namespace aux {
|
||||
::boost::parameter::aux::tagged_argument<Keyword,Arg>
|
||||
, ::boost::parameter::aux::arg_list<
|
||||
::boost::parameter::aux::tagged_argument<Keyword2,Arg2>
|
||||
>
|
||||
>
|
||||
>
|
||||
operator,(
|
||||
::boost::parameter::aux
|
||||
@@ -673,7 +682,7 @@ namespace boost { namespace parameter { namespace aux {
|
||||
::boost::parameter::aux::tagged_argument<Keyword,Arg>
|
||||
, ::boost::parameter::aux::arg_list<
|
||||
::boost::parameter::aux::tagged_argument<Keyword2,Arg2>
|
||||
>
|
||||
>
|
||||
>(
|
||||
*this
|
||||
, ::boost::parameter::aux::arg_list<
|
||||
|
||||
Reference in New Issue
Block a user