+ fix unused parameter warnings
This commit is contained in:
parent
79ef09d1a3
commit
73e15f0c75
1 changed files with 26 additions and 6 deletions
|
@ -71,19 +71,39 @@ inline void to_utf8(UnicodeString const& input, std::string & target)
|
||||||
struct value_null
|
struct value_null
|
||||||
{
|
{
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_null operator+ (T const& other) const { return *this; }
|
value_null operator+ (T const& other) const
|
||||||
|
{
|
||||||
|
boost::ignore_unused_variable_warning(other);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_null operator- (T const& other) const { return *this; }
|
value_null operator- (T const& other) const
|
||||||
|
{
|
||||||
|
boost::ignore_unused_variable_warning(other);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_null operator* (T const& other) const { return *this; }
|
value_null operator* (T const& other) const
|
||||||
|
{
|
||||||
|
boost::ignore_unused_variable_warning(other);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_null operator/ (T const& other) const { return *this; }
|
value_null operator/ (T const& other) const
|
||||||
|
{
|
||||||
|
boost::ignore_unused_variable_warning(other);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
value_null operator% (T const& other) const { return *this; }
|
value_null operator% (T const& other) const
|
||||||
|
{
|
||||||
|
boost::ignore_unused_variable_warning(other);
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef boost::variant<value_null,bool,int,double,UnicodeString> value_base;
|
typedef boost::variant<value_null,bool,int,double,UnicodeString> value_base;
|
||||||
|
@ -352,7 +372,7 @@ struct add : public boost::static_visitor<V>
|
||||||
{
|
{
|
||||||
return lhs + rhs;
|
return lhs + rhs;
|
||||||
}
|
}
|
||||||
|
|
||||||
value_type operator() (UnicodeString const& lhs, value_null rhs) const
|
value_type operator() (UnicodeString const& lhs, value_null rhs) const
|
||||||
{
|
{
|
||||||
boost::ignore_unused_variable_warning(rhs);
|
boost::ignore_unused_variable_warning(rhs);
|
||||||
|
|
Loading…
Reference in a new issue