X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fcomm%2FlargeBinaryCodec%2Fmain.cpp;fp=example%2Fcomm%2FlargeBinaryCodec%2Fmain.cpp;h=c029c8fb4a52beb9044356a78b7618b1974402fd;hp=0b99468a7f0b8009b3d43d196eadc504b402f0b9;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/comm/largeBinaryCodec/main.cpp b/example/comm/largeBinaryCodec/main.cpp index 0b99468..c029c8f 100644 --- a/example/comm/largeBinaryCodec/main.cpp +++ b/example/comm/largeBinaryCodec/main.cpp @@ -25,11 +25,11 @@ public: attach ("integer", a_integer); } - void set (const char* value) throw () { a_string = value; } - void set (const int value) throw () { a_integer = value; } + void set (const char* value) { a_string = value; } + void set (const int value) { a_integer = value; } - const std::string& getString () const throw () { return a_string; } - const int getInteger () const throw () { return a_integer; } + const std::string& getString () const { return a_string; } + const int getInteger () const { return a_integer; } private: std::string a_string; @@ -43,9 +43,9 @@ public: private: MyCodec a_input; - void show (const LargeBinaryCodec& lbc) throw (anna::RuntimeException); + void show (const LargeBinaryCodec& lbc) noexcept(false); - void run () throw (anna::RuntimeException); + void run () noexcept(false); }; using namespace std; @@ -82,7 +82,7 @@ Test::Test () : } void Test::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cm (CommandLine::instantiate ()); LargeBinaryCodec input (1, false); @@ -110,7 +110,7 @@ void Test::run () } void Test::show (const LargeBinaryCodec& lbc) - throw (RuntimeException) + noexcept(false) { MyCodec output;