- //-------------------------------------------------------------------------
- RESETABLE()
- : value(),
- is_set(false)
- {
- }
- //-------------------------------------------------------------------------
- RESETABLE<value_type>(const RESETABLE<value_type> & rvalue)
- : value(rvalue.value),
- is_set(rvalue.is_set)
- {
- }
- //-------------------------------------------------------------------------
- RESETABLE(const value_type& val)
- : value(val),
- is_set(true)
- {
- }
- //-------------------------------------------------------------------------
- RESETABLE<value_type> & operator=(const RESETABLE<value_type> & rvalue)
- {
- value = rvalue.value;
- is_set = rvalue.is_set;
- return *this;
- }
- //-------------------------------------------------------------------------
- RESETABLE<value_type> & operator= (const value_type& rhs)
+ RESETABLE() : value(), is_set(false) {}
+ explicit RESETABLE(const T & v) : value(v), is_set(true) {}
+
+ RESETABLE<T> & operator=(const T & rhs)