Commit 95ece26f authored by Davis King's avatar Davis King

Added some things to the initializer lists of some exception classes because

without them you get errors when compiling with the Intel compiler.

--HG--
extra : convert_revision : svn%3Afdd8eb12-d10e-0410-9acb-85c331704f74/trunk%402545
parent 4115e78c
...@@ -41,7 +41,9 @@ namespace dlib ...@@ -41,7 +41,9 @@ namespace dlib
) : ) :
dlib::error(t), dlib::error(t),
opt(opt_), opt(opt_),
arg(arg_) opt2(),
arg(arg_),
required_opts()
{ set_info_string(); } { set_info_string(); }
cmd_line_check_error( cmd_line_check_error(
...@@ -52,7 +54,9 @@ namespace dlib ...@@ -52,7 +54,9 @@ namespace dlib
) : ) :
dlib::error(t), dlib::error(t),
opt(opt_), opt(opt_),
opt2(opt2_) opt2(opt2_),
arg(),
required_opts()
{ set_info_string(); } { set_info_string(); }
cmd_line_check_error ( cmd_line_check_error (
...@@ -62,6 +66,8 @@ namespace dlib ...@@ -62,6 +66,8 @@ namespace dlib
) : ) :
dlib::error(t), dlib::error(t),
opt(opt_), opt(opt_),
opt2(),
arg(),
required_opts(vect) required_opts(vect)
{ set_info_string(); } { set_info_string(); }
...@@ -70,7 +76,10 @@ namespace dlib ...@@ -70,7 +76,10 @@ namespace dlib
const string_type& opt_ const string_type& opt_
) : ) :
dlib::error(t), dlib::error(t),
opt(opt_) opt(opt_),
opt2(),
arg(),
required_opts()
{ set_info_string(); } { set_info_string(); }
~cmd_line_check_error() throw() {} ~cmd_line_check_error() throw() {}
......
...@@ -114,6 +114,7 @@ namespace dlib ...@@ -114,6 +114,7 @@ namespace dlib
cmd_line_parse_error( cmd_line_parse_error(
) : ) :
dlib::error(), dlib::error(),
item(),
num(0) num(0)
{ set_info_string();} { set_info_string();}
......
...@@ -48,6 +48,12 @@ namespace dlib ...@@ -48,6 +48,12 @@ namespace dlib
class decompression_error : public dlib::error class decompression_error : public dlib::error
{ {
public: public:
decompression_error(
const char* i
) :
dlib::error(std::string(i))
{}
decompression_error( decompression_error(
const std::string& i const std::string& i
) : ) :
......
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