Fix VS 2015 compile
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
|||||||
* Returns a pointer to object of requested type stored with given key
|
* Returns a pointer to object of requested type stored with given key
|
||||||
* or default constructs one and returns that one
|
* or default constructs one and returns that one
|
||||||
*/
|
*/
|
||||||
template<class T, typename std::enable_if<std::is_default_constructible<T>{}, int>::type = 0>
|
template<class T, typename std::enable_if<std::is_default_constructible<T>::value, int>::type = 0>
|
||||||
T* GetDefault(std::string const & k) {
|
T* GetDefault(std::string const & k) {
|
||||||
static_assert(std::is_base_of<Base, T>::value, "T must derive from Base");
|
static_assert(std::is_base_of<Base, T>::value, "T must derive from Base");
|
||||||
if (T* v = Get<T>(k))
|
if (T* v = Get<T>(k))
|
||||||
|
|||||||
Reference in New Issue
Block a user