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;
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;
}
void Test::run ()
- throw (RuntimeException)
+ noexcept(false)
{
CommandLine& cm (CommandLine::instantiate ());
LargeBinaryCodec input (1, false);
}
void Test::show (const LargeBinaryCodec& lbc)
- throw (RuntimeException)
+ noexcept(false)
{
MyCodec output;