diff options
Diffstat (limited to 'TAO/CIAO/CCF/CCF/CompilerElements/Traversal.hpp')
-rw-r--r-- | TAO/CIAO/CCF/CCF/CompilerElements/Traversal.hpp | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/TAO/CIAO/CCF/CCF/CompilerElements/Traversal.hpp b/TAO/CIAO/CCF/CCF/CompilerElements/Traversal.hpp deleted file mode 100644 index 86066ee7a63..00000000000 --- a/TAO/CIAO/CCF/CCF/CompilerElements/Traversal.hpp +++ /dev/null @@ -1,38 +0,0 @@ -#ifndef TRAVERSAL_HPP -#define TRAVERSAL_HPP - -#include "MSVC_Pragmas.hpp" - -namespace CCF -{ - namespace Traversal - { - struct Visitor - { - virtual - ~Visitor () /*@@= 0*/ {} - }; - - - template <typename VisitorType> - bool - try_visit ( - void (VisitorType::*visit_func)(typename VisitorType::NodePtr const&), - Visitor* v, - typename VisitorType::NodePtr const& n) - { - VisitorType* vt = dynamic_cast<VisitorType*> (v); - if(vt != 0) - { - (vt->*visit_func)(n); - return true; - } - else - { - return false; - } - } - } -} - -#endif // TRAVERSAL_HPP |