Commit fb3c45d3 authored by Davis King's avatar Davis King

previous checkin broke some ASSERT statements. Fixing this problem

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%403952
parent a7174d53
...@@ -89,8 +89,10 @@ namespace dlib ...@@ -89,8 +89,10 @@ namespace dlib
#ifdef ENABLE_ASSERTS #ifdef ENABLE_ASSERTS
#define DLIB_ASSERT(_exp,_message) DLIB_CASSERT(_exp,_message) #define DLIB_ASSERT(_exp,_message) DLIB_CASSERT(_exp,_message)
#define DLIB_IF_ASSERT(exp) exp
#else #else
#define DLIB_ASSERT(_exp,_message) #define DLIB_ASSERT(_exp,_message)
#define DLIB_IF_ASSERT(exp)
#endif #endif
// ---------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------
......
...@@ -2031,7 +2031,7 @@ namespace dlib ...@@ -2031,7 +2031,7 @@ namespace dlib
> >
const matrix_op<op_add_diag<EXP> > operator+ ( const matrix_op<op_add_diag<EXP> > operator+ (
const matrix_exp<EXP>& lhs, const matrix_exp<EXP>& lhs,
const matrix_exp<matrix_diag_op<op_identity_matrix_2<T> > >& const matrix_exp<matrix_diag_op<op_identity_matrix_2<T> > >& DLIB_IF_ASSERT(rhs)
) )
{ {
// both matrices must contain the same type of element // both matrices must contain the same type of element
...@@ -2062,7 +2062,7 @@ namespace dlib ...@@ -2062,7 +2062,7 @@ namespace dlib
typename T typename T
> >
const matrix_op<op_add_diag<EXP> > operator+ ( const matrix_op<op_add_diag<EXP> > operator+ (
const matrix_exp<matrix_diag_op<op_identity_matrix_2<T> > >& , const matrix_exp<matrix_diag_op<op_identity_matrix_2<T> > >& DLIB_IF_ASSERT(lhs),
const matrix_exp<EXP>& rhs const matrix_exp<EXP>& rhs
) )
{ {
...@@ -2279,7 +2279,7 @@ namespace dlib ...@@ -2279,7 +2279,7 @@ namespace dlib
long N long N
> >
const matrix_op<op_add_diag<EXP> > operator+ ( const matrix_op<op_add_diag<EXP> > operator+ (
const matrix_exp<matrix_diag_op<op_identity_matrix<T,N> > >& , const matrix_exp<matrix_diag_op<op_identity_matrix<T,N> > >& DLIB_IF_ASSERT(lhs),
const matrix_exp<EXP>& rhs const matrix_exp<EXP>& rhs
) )
{ {
...@@ -2311,7 +2311,7 @@ namespace dlib ...@@ -2311,7 +2311,7 @@ namespace dlib
> >
const matrix_op<op_add_diag<EXP> > operator+ ( const matrix_op<op_add_diag<EXP> > operator+ (
const matrix_exp<EXP>& lhs, const matrix_exp<EXP>& lhs,
const matrix_exp<matrix_diag_op<op_identity_matrix<T,N> > >& const matrix_exp<matrix_diag_op<op_identity_matrix<T,N> > >& DLIB_IF_ASSERT(rhs)
) )
{ {
// both matrices must contain the same type of element // both matrices must contain the same type of element
......
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