mirror of https://github.com/davisking/dlib.git
Fixed a bug in the deserialization code for the sparse kernels. The bug
prevented code which used the deserialization routine from compiling. --HG-- extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404030
This commit is contained in:
parent
e2fa9f3248
commit
03f400aa3b
|
@ -85,7 +85,7 @@ namespace dlib
|
|||
std::istream& in
|
||||
)
|
||||
{
|
||||
typedef typename T::type scalar_type;
|
||||
typedef typename T::value_type::second_type scalar_type;
|
||||
try
|
||||
{
|
||||
deserialize(const_cast<scalar_type&>(item.gamma), in);
|
||||
|
@ -172,7 +172,7 @@ namespace dlib
|
|||
std::istream& in
|
||||
)
|
||||
{
|
||||
typedef typename T::type scalar_type;
|
||||
typedef typename T::value_type::second_type scalar_type;
|
||||
try
|
||||
{
|
||||
deserialize(const_cast<scalar_type&>(item.gamma), in);
|
||||
|
@ -258,7 +258,7 @@ namespace dlib
|
|||
std::istream& in
|
||||
)
|
||||
{
|
||||
typedef typename T::type scalar_type;
|
||||
typedef typename T::value_type::second_type scalar_type;
|
||||
try
|
||||
{
|
||||
deserialize(const_cast<scalar_type&>(item.gamma), in);
|
||||
|
|
Loading…
Reference in New Issue