Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
36b04362
Commit
36b04362
authored
Nov 11, 2017
by
Pierre Fenoll
Committed by
Davis E. King
Nov 11, 2017
Browse files
pedantic: fix "extra `;`" warnings when compiling with -Wpedantic (#906)
parent
8b5c04d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
dlib/matrix/matrix_op.h
dlib/matrix/matrix_op.h
+8
-8
No files found.
dlib/matrix/matrix_op.h
View file @
36b04362
...
@@ -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) \
{ \
{ \
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment