+ fix unused parameter warnings

This commit is contained in:
artemp 2012-07-10 12:48:09 +01:00
parent 79ef09d1a3
commit 73e15f0c75

View file

@ -71,19 +71,39 @@ inline void to_utf8(UnicodeString const& input, std::string & target)
struct value_null
{
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>
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>
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>
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>
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;