Commit f06dbfd5 authored by Davis King's avatar Davis King

Fixed compile time bug in the constructor I just added.

parent 9482271e
......@@ -590,7 +590,16 @@ namespace dlib
}
template <typename T, typename ...U>
struct details_constructable_from : public std::is_constructible<LAYER_DETAILS,T> {};
struct details_constructable_from
{
const static bool value = std::is_constructible<LAYER_DETAILS,T>::value;
};
template <typename ...T, typename ...U>
struct details_constructable_from<std::tuple<T...>,U...>
{
// just say true so that the constructor below never activates for tuple types.
const static bool value = true;
};
template <
typename ...T,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment