projects
/
anna.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove dynamic exceptions
[anna.git]
/
example
/
comm
/
largeBinaryCodec
/
main.cpp
diff --git
a/example/comm/largeBinaryCodec/main.cpp
b/example/comm/largeBinaryCodec/main.cpp
index
0b99468
..
c029c8f
100644
(file)
--- a/
example/comm/largeBinaryCodec/main.cpp
+++ b/
example/comm/largeBinaryCodec/main.cpp
@@
-25,11
+25,11
@@
public:
attach ("integer", a_integer);
}
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:
std::string a_string;
@@
-43,9
+43,9
@@
public:
private:
MyCodec a_input;
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;
};
using namespace std;
@@
-82,7
+82,7
@@
Test::Test () :
}
void Test::run ()
}
void Test::run ()
-
throw (RuntimeException
)
+
noexcept(false
)
{
CommandLine& cm (CommandLine::instantiate ());
LargeBinaryCodec input (1, false);
{
CommandLine& cm (CommandLine::instantiate ());
LargeBinaryCodec input (1, false);
@@
-110,7
+110,7
@@
void Test::run ()
}
void Test::show (const LargeBinaryCodec& lbc)
}
void Test::show (const LargeBinaryCodec& lbc)
-
throw (RuntimeException
)
+
noexcept(false
)
{
MyCodec output;
{
MyCodec output;