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
/
core
/
sortName
/
main.cpp
diff --git
a/example/core/sortName/main.cpp
b/example/core/sortName/main.cpp
index
6b6cb85
..
5a40f97
100644
(file)
--- a/
example/core/sortName/main.cpp
+++ b/
example/core/sortName/main.cpp
@@
-18,14
+18,14
@@
class Object {
public:
Object ();
public:
Object ();
- const std::string& getName () const
throw ()
{ return a_name; }
+ const std::string& getName () const { return a_name; }
private:
std::string a_name;
};
struct SortByName {
private:
std::string a_name;
};
struct SortByName {
- static const std::string& value (const Object* oo)
throw ()
{ return oo->getName (); }
+ static const std::string& value (const Object* oo) { return oo->getName (); }
};
string generate ()
};
string generate ()
@@
-49,7
+49,7
@@
Object::Object ()
}
void run ()
}
void run ()
-
throw (RuntimeException
)
+
noexcept(false
)
{
typedef SortedVector <Object, SortByName, std::string> container;
typedef container::iterator iterator;
{
typedef SortedVector <Object, SortByName, std::string> container;
typedef container::iterator iterator;