diff --git a/src/blackmisc/valueobject.h b/src/blackmisc/valueobject.h index 9a471d219..daca49282 100644 --- a/src/blackmisc/valueobject.h +++ b/src/blackmisc/valueobject.h @@ -144,10 +144,11 @@ namespace BlackMisc using Mixin::MetaType::registerMetadata; protected: - //! Template constructor, forwards all arguments to base class constructor. - //! \todo When our compilers support C++11 inheriting constructors, use those instead. - template ::type>::value>::type> - CValueObject(Ts &&... args) : Base(std::forward(args)...) {} + //! Inheriting constructors. + using Base::Base; + + //! Default constructor. + CValueObject() = default; //! Copy constructor. CValueObject(const CValueObject &) = default;