Config Attribute Value: let compiler handle default special functions (rule of 5)
This commit is contained in:
parent
0a9d351fe2
commit
7a665d0959
2 changed files with 0 additions and 33 deletions
|
@ -37,30 +37,6 @@ const std::string config_attribute_value::s_no("no");
|
|||
const std::string config_attribute_value::s_true("true");
|
||||
const std::string config_attribute_value::s_false("false");
|
||||
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value::config_attribute_value()
|
||||
: value_()
|
||||
{
|
||||
}
|
||||
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value::~config_attribute_value()
|
||||
{
|
||||
}
|
||||
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value::config_attribute_value(const config_attribute_value& that)
|
||||
: value_(that.value_)
|
||||
{
|
||||
}
|
||||
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value& config_attribute_value::operator=(const config_attribute_value& that)
|
||||
{
|
||||
value_ = that.value_;
|
||||
return *this;
|
||||
}
|
||||
|
||||
config_attribute_value& config_attribute_value::operator=(bool v)
|
||||
{
|
||||
value_ = yes_no(v);
|
||||
|
|
|
@ -110,15 +110,6 @@ private:
|
|||
value_type value_;
|
||||
|
||||
public:
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value();
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
~config_attribute_value();
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value(const config_attribute_value &);
|
||||
/** Default implementation, but defined out-of-line for efficiency reasons. */
|
||||
config_attribute_value &operator=(const config_attribute_value &);
|
||||
|
||||
// Numeric assignments:
|
||||
config_attribute_value& operator=(bool v);
|
||||
config_attribute_value& operator=(int v);
|
||||
|
|
Loading…
Add table
Reference in a new issue