mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-29 20:55:42 +08:00
refs #624 Use inheriting constructors in CValueObject.
This commit is contained in:
@@ -144,10 +144,11 @@ namespace BlackMisc
|
|||||||
using Mixin::MetaType<Derived>::registerMetadata;
|
using Mixin::MetaType<Derived>::registerMetadata;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Template constructor, forwards all arguments to base class constructor.
|
//! Inheriting constructors.
|
||||||
//! \todo When our compilers support C++11 inheriting constructors, use those instead.
|
using Base::Base;
|
||||||
template <typename... Ts, typename = typename std::enable_if<! std::is_same<CValueObject, typename Private::DecayFirst<Ts...>::type>::value>::type>
|
|
||||||
CValueObject(Ts &&... args) : Base(std::forward<Ts>(args)...) {}
|
//! Default constructor.
|
||||||
|
CValueObject() = default;
|
||||||
|
|
||||||
//! Copy constructor.
|
//! Copy constructor.
|
||||||
CValueObject(const CValueObject &) = default;
|
CValueObject(const CValueObject &) = default;
|
||||||
|
|||||||
Reference in New Issue
Block a user