Commit 0c0db073 authored by Davis King's avatar Davis King

Added a version of print_options() that doesn't take an ostream but just prints

to cout.
parent 82463617
......@@ -302,6 +302,18 @@ namespace dlib
it will have no effect on the state of #*this.
!*/
void print_options (
) const;
/*!
ensures
- prints all the command line options to cout.
- #at_start() == true
throws
- any exception.
if an exception is thrown then #at_start() == true but otherwise
it will have no effect on the state of #*this.
!*/
// -------------------------------------------------------------
// Input Validation Tools
// -------------------------------------------------------------
......
......@@ -23,7 +23,13 @@ namespace dlib
void print_options (
std::basic_ostream<typename clp_base::char_type>& out
);
) const;
void print_options (
) const
{
print_options(std::cout);
}
};
......@@ -47,7 +53,7 @@ namespace dlib
void cmd_line_parser_print_1<clp_base>::
print_options (
std::basic_ostream<typename clp_base::char_type>& out
)
) const
{
typedef typename clp_base::char_type ct;
typedef std::basic_string<ct> string;
......
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