X-Git-Url: https://git.teslayout.com/public/public/public/?p=anna.git;a=blobdiff_plain;f=example%2Fcomm%2Fcodec%2Fmain.cpp;h=2efa1252304ca048228f8bd91a86d583c4a2c66b;hp=761dadba9f9e539af2df4903c20a0e178abf9edc;hb=5a6cba5fde2b2f538a7515f8293cc0a8d9589dfa;hpb=af9c86ffb0e28d35ad94d99c5f77e41578c972b4 diff --git a/example/comm/codec/main.cpp b/example/comm/codec/main.cpp index 761dadb..2efa125 100644 --- a/example/comm/codec/main.cpp +++ b/example/comm/codec/main.cpp @@ -32,18 +32,18 @@ public: attach ("double", a_double); } - void set (const std::string& value) throw () { a_string = a_string2 = value; a_string2 += value; } - void set (const int value) throw () { a_integer = value; } - void set (const anna::DataBlock& value) throw () { a_dataBlock = value; } - void set (const float value) throw () { a_float = value; } - void set (const double value) throw () { a_double = value; } + void set (const std::string& value) { a_string = a_string2 = value; a_string2 += value; } + void set (const int value) { a_integer = value; } + void set (const anna::DataBlock& value) { a_dataBlock = value; } + void set (const float value) { a_float = value; } + void set (const double value) { a_double = value; } - const std::string& getString () const throw () { return a_string; } - const int getInteger () const throw () { return a_integer; } - const anna::DataBlock& getDataBlock () const throw (anna::RuntimeException) { return a_dataBlock; } - const std::string& getString2 () const throw () { return a_string2; } - float getFloat () const throw () { return a_float; } - float getDouble () const throw () { return a_double; } + const std::string& getString () const { return a_string; } + const int getInteger () const { return a_integer; } + const anna::DataBlock& getDataBlock () const noexcept(false) { return a_dataBlock; } + const std::string& getString2 () const { return a_string2; } + float getFloat () const { return a_float; } + float getDouble () const { return a_double; } private: std::string a_string; @@ -62,7 +62,7 @@ private: MyCodec a_input; MyCodec a_output; - void run () throw (anna::RuntimeException); + void run () noexcept(false); }; using namespace std; @@ -102,7 +102,7 @@ Test::Test () : } void Test::run () - throw (RuntimeException) + noexcept(false) { CommandLine& cm (CommandLine::instantiate ());