Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
f06dbfd5
"tools/vscode:/vscode.git/clone" did not exist on "02b209316a2d23548f2a25e5484c3d390009eb34"
Commit
f06dbfd5
authored
Apr 07, 2016
by
Davis King
Browse files
Fixed compile time bug in the constructor I just added.
parent
9482271e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
1 deletion
+10
-1
dlib/dnn/core.h
dlib/dnn/core.h
+10
-1
No files found.
dlib/dnn/core.h
View file @
f06dbfd5
...
@@ -590,7 +590,16 @@ namespace dlib
...
@@ -590,7 +590,16 @@ namespace dlib
}
}
template
<
typename
T
,
typename
...
U
>
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
<
template
<
typename
...
T
,
typename
...
T
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment