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
99885356
"git@developer.sourcefind.cn:OpenDAS/d2go.git" did not exist on "4208a79114c340319a4340d1be3350acabb83b1f"
Commit
99885356
authored
Apr 17, 2018
by
Davis King
Browse files
Fixed compile time error in the matlab bindings.
parent
4104c2cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dlib/matrix/matrix_data_layout.h
dlib/matrix/matrix_data_layout.h
+4
-4
No files found.
dlib/matrix/matrix_data_layout.h
View file @
99885356
...
...
@@ -1154,10 +1154,10 @@ namespace dlib
nc_
=
nc
;
}
std
::
unique_ptr
<
T
[]
>
steal_memory
()
std
::
unique_ptr
<
double
[]
>
steal_memory
()
{
DLIB_CASSERT
(
!
owned_by_matlab
,
"You can't steal the memory from a matrix if it's owned by MATLAB."
);
std
::
unique_ptr
<
T
[]
>
ret
(
data
);
std
::
unique_ptr
<
double
[]
>
ret
(
data
);
data
=
nullptr
;
nr_
=
0
;
nc_
=
0
;
...
...
@@ -1307,10 +1307,10 @@ namespace dlib
nc_
=
nc
;
}
std
::
unique_ptr
<
T
[]
>
steal_memory
()
std
::
unique_ptr
<
float
[]
>
steal_memory
()
{
DLIB_CASSERT
(
!
owned_by_matlab
,
"You can't steal the memory from a matrix if it's owned by MATLAB."
);
std
::
unique_ptr
<
T
[]
>
ret
(
data
);
std
::
unique_ptr
<
float
[]
>
ret
(
data
);
data
=
nullptr
;
nr_
=
0
;
nc_
=
0
;
...
...
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