Commit 514e0f38 authored by Davis King's avatar Davis King

Removed inappropriate uses of const on the be_verbose() functions.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%404186
parent 926c2afa
...@@ -44,8 +44,8 @@ namespace dlib ...@@ -44,8 +44,8 @@ namespace dlib
); );
} }
const objective_delta_stop_strategy& be_verbose( objective_delta_stop_strategy& be_verbose(
) const )
{ {
_verbose = true; _verbose = true;
return *this; return *this;
...@@ -83,7 +83,7 @@ namespace dlib ...@@ -83,7 +83,7 @@ namespace dlib
} }
private: private:
mutable bool _verbose; bool _verbose;
bool _been_used; bool _been_used;
double _min_delta; double _min_delta;
...@@ -123,8 +123,8 @@ namespace dlib ...@@ -123,8 +123,8 @@ namespace dlib
); );
} }
const gradient_norm_stop_strategy& be_verbose( gradient_norm_stop_strategy& be_verbose(
) const )
{ {
_verbose = true; _verbose = true;
return *this; return *this;
...@@ -158,7 +158,7 @@ namespace dlib ...@@ -158,7 +158,7 @@ namespace dlib
} }
private: private:
mutable bool _verbose; bool _verbose;
double _min_norm; double _min_norm;
unsigned long _max_iter; unsigned long _max_iter;
......
...@@ -53,8 +53,8 @@ namespace dlib ...@@ -53,8 +53,8 @@ namespace dlib
executed. executed.
!*/ !*/
const objective_delta_stop_strategy& be_verbose( objective_delta_stop_strategy& be_verbose(
) const; );
/*! /*!
ensures ensures
- causes this object to print status messages to standard out - causes this object to print status messages to standard out
...@@ -120,8 +120,8 @@ namespace dlib ...@@ -120,8 +120,8 @@ namespace dlib
max_iter iterations has been executed. max_iter iterations has been executed.
!*/ !*/
const gradient_norm_stop_strategy& be_verbose( gradient_norm_stop_strategy& be_verbose(
) const; );
/*! /*!
ensures ensures
- causes this object to print status messages to standard out - causes this object to print status messages to standard out
......
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