diff options
author | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
---|---|---|
committer | Daniel Wilhelm <daniel@wili.li> | 2014-04-18 17:14:37 +0200 |
commit | 8bf668665b107469086f16cb8ad23e47d479d2b4 (patch) | |
tree | 66a91ef06a8caa7cd6819dcbe1860693d3eda8d5 /shared/loki/Visitor.h | |
parent | 3.21 (diff) | |
download | FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.gz FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.tar.bz2 FreeFileSync-8bf668665b107469086f16cb8ad23e47d479d2b4.zip |
4.0
Diffstat (limited to 'shared/loki/Visitor.h')
-rw-r--r-- | shared/loki/Visitor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/shared/loki/Visitor.h b/shared/loki/Visitor.h index f6b0ad81..85b8acd2 100644 --- a/shared/loki/Visitor.h +++ b/shared/loki/Visitor.h @@ -249,7 +249,7 @@ typename R = void, > class BaseVisitable; -template<typename R,template <typename, class> class CatchAll> +template<typename R, template <typename, class> class CatchAll> class BaseVisitable<R, CatchAll, false> { public: @@ -262,7 +262,7 @@ protected: // give access only to the hierarchy static ReturnType AcceptImpl(T& visited, BaseVisitor& guest) { // Apply the Acyclic Visitor - if (Visitor<T,R>* p = dynamic_cast<Visitor<T,R>*>(&guest)) + if (Visitor<T, R>* p = dynamic_cast<Visitor<T, R>*>(&guest)) { return p->Visit(visited); } @@ -270,7 +270,7 @@ protected: // give access only to the hierarchy } }; -template<typename R,template <typename, class> class CatchAll> +template<typename R, template <typename, class> class CatchAll> class BaseVisitable<R, CatchAll, true> { public: @@ -283,7 +283,7 @@ protected: // give access only to the hierarchy static ReturnType AcceptImpl(const T& visited, BaseVisitor& guest) { // Apply the Acyclic Visitor - if (Visitor<T,R,true>* p = dynamic_cast<Visitor<T,R,true>*>(&guest)) + if (Visitor<T, R, true>* p = dynamic_cast<Visitor<T, R, true>*>(&guest)) { return p->Visit(visited); } |