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
/
dbos
/
workdir
/
filesystem
/
File.hpp
diff --git
a/example/dbos/workdir/filesystem/File.hpp
b/example/dbos/workdir/filesystem/File.hpp
index
f3da2df
..
7e6decc
100644
(file)
--- a/
example/dbos/workdir/filesystem/File.hpp
+++ b/
example/dbos/workdir/filesystem/File.hpp
@@
-22,12
+22,12
@@
class File : public Abstract {
public:
File (Directory* parent, const std::string& name) : Abstract (ClassType::File, parent, name) {;}
public:
File (Directory* parent, const std::string& name) : Abstract (ClassType::File, parent, name) {;}
- void print (const int level) const
throw ()
;
+ void print (const int level) const ;
- static File* down_cast (Abstract* abstract)
throw ()
{
+ static File* down_cast (Abstract* abstract) {
return (abstract->getClassType () == ClassType::File) ? static_cast <File*> (abstract): NULL;
}
return (abstract->getClassType () == ClassType::File) ? static_cast <File*> (abstract): NULL;
}
- static const File* down_cast (const Abstract* abstract)
throw ()
{
+ static const File* down_cast (const Abstract* abstract) {
return (abstract->getClassType () == ClassType::File) ? static_cast <const File*> (abstract): NULL;
}
};
return (abstract->getClassType () == ClassType::File) ? static_cast <const File*> (abstract): NULL;
}
};