"git@developer.sourcefind.cn:OpenDAS/d2go.git" did not exist on "4208a79114c340319a4340d1be3350acabb83b1f"
Commit 99885356 authored by Davis King's avatar Davis King
Browse files

Fixed compile time error in the matlab bindings.

parent 4104c2cd
......@@ -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;
......
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