Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Supressed 'unused parameters' warnings. #1

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 7 additions & 5 deletions include/boost/parameter/aux_/tagged_argument.hpp
Expand Up @@ -26,7 +26,7 @@ struct tagged_argument_base {};

// Holds a reference to an argument of type Arg associated with
// keyword Keyword

template <class Keyword, class Arg>
struct tagged_argument : tagged_argument_base
{
Expand Down Expand Up @@ -57,13 +57,13 @@ struct tagged_argument : tagged_argument_base
template <class Keyword2, class Arg2>
arg_list<
tagged_argument<Keyword, Arg>
, arg_list<tagged_argument<Keyword2, Arg2> >
, arg_list<tagged_argument<Keyword2, Arg2> >
>
operator,(tagged_argument<Keyword2, Arg2> x) const
{
return arg_list<
tagged_argument<Keyword, Arg>
, arg_list<tagged_argument<Keyword2, Arg2> >
, arg_list<tagged_argument<Keyword2, Arg2> >
>(
*this
, arg_list<tagged_argument<Keyword2, Arg2> >(x, empty_arg_list())
Expand Down Expand Up @@ -96,7 +96,7 @@ struct tagged_argument : tagged_argument_base
}

template <class KW, class F>
typename result_of0<F>::type
typename result_of0<F>::type
get_with_lazy_default(lazy_default<KW,F> const& x, int) const
{
return x.compute_default();
Expand All @@ -122,12 +122,14 @@ struct tagged_argument : tagged_argument_base
template <class Default>
reference operator[](default_<key_type,Default> const& x) const
{
(void)x;
return value;
}

template <class F>
reference operator[](lazy_default<key_type,F> const& x) const
{
(void)x;
return value;
}

Expand Down Expand Up @@ -159,7 +161,7 @@ struct tagged_argument : tagged_argument_base
// warning suppression
private:
void operator=(tagged_argument const&);
public:
public:
# endif
// MPL sequence support
typedef tagged_argument type; // Convenience for users
Expand Down