Commit 36b04362 authored by Pierre Fenoll's avatar Pierre Fenoll Committed by Davis E. King

pedantic: fix "extra `;`" warnings when compiling with -Wpedantic (#906)

parent 8b5c04d0
...@@ -374,10 +374,10 @@ namespace dlib ...@@ -374,10 +374,10 @@ namespace dlib
template <typename U> bool destructively_aliases ( const matrix_exp<U>& item) const \ template <typename U> bool destructively_aliases ( const matrix_exp<U>& item) const \
{ return m.destructively_aliases(item); } \ { return m.destructively_aliases(item); } \
\ \
}; }
#define DLIB_DEFINE_FUNCTION_M(op_name, name, function, extra_cost) \ #define DLIB_DEFINE_FUNCTION_M(op_name, name, function, extra_cost) \
DLIB_DEFINE_OP_M(op_name, function, extra_cost) \ DLIB_DEFINE_OP_M(op_name, function, extra_cost); \
template < typename M > \ template < typename M > \
const matrix_op<op_name<M> > name ( const matrix_exp<M>& m) \ const matrix_op<op_name<M> > name ( const matrix_exp<M>& m) \
{ \ { \
...@@ -417,10 +417,10 @@ namespace dlib ...@@ -417,10 +417,10 @@ namespace dlib
template <typename U> bool destructively_aliases ( const matrix_exp<U>& item) const \ template <typename U> bool destructively_aliases ( const matrix_exp<U>& item) const \
{ return m.destructively_aliases(item); } \ { return m.destructively_aliases(item); } \
\ \
}; }
#define DLIB_DEFINE_FUNCTION_MS(op_name, name, function, extra_cost) \ #define DLIB_DEFINE_FUNCTION_MS(op_name, name, function, extra_cost) \
DLIB_DEFINE_OP_MS(op_name, function, extra_cost) \ DLIB_DEFINE_OP_MS(op_name, function, extra_cost); \
template < typename M, typename S > \ template < typename M, typename S > \
const matrix_op<op_name<M, S> > name ( const matrix_exp<M>& m, const S& s) \ const matrix_op<op_name<M, S> > name ( const matrix_exp<M>& m, const S& s) \
{ \ { \
...@@ -460,10 +460,10 @@ namespace dlib ...@@ -460,10 +460,10 @@ namespace dlib
template <typename U> bool destructively_aliases ( const matrix_exp<U>& item) const \ template <typename U> bool destructively_aliases ( const matrix_exp<U>& item) const \
{ return m.destructively_aliases(item); } \ { return m.destructively_aliases(item); } \
\ \
}; }
#define DLIB_DEFINE_FUNCTION_SM(op_name, name, function, extra_cost) \ #define DLIB_DEFINE_FUNCTION_SM(op_name, name, function, extra_cost) \
DLIB_DEFINE_OP_SM(op_name, function, extra_cost) \ DLIB_DEFINE_OP_SM(op_name, function, extra_cost); \
template < typename S, typename M > \ template < typename S, typename M > \
const matrix_op<op_name<S, M> > name (const S& s, const matrix_exp<M>& m) \ const matrix_op<op_name<S, M> > name (const S& s, const matrix_exp<M>& m) \
{ \ { \
......
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