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:
Davis King 2010-12-24 23:53:06 +00:00
parent e2fa9f3248
commit 03f400aa3b
1 changed files with 3 additions and 3 deletions

View File

@ -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);