mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 21:15:33 +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;
|
||||
|
||||
protected:
|
||||
//! Template constructor, forwards all arguments to base class constructor.
|
||||
//! \todo When our compilers support C++11 inheriting constructors, use those instead.
|
||||
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)...) {}
|
||||
//! Inheriting constructors.
|
||||
using Base::Base;
|
||||
|
||||
//! Default constructor.
|
||||
CValueObject() = default;
|
||||
|
||||
//! Copy constructor.
|
||||
CValueObject(const CValueObject &) = default;
|
||||
|
||||
Reference in New Issue
Block a user