Created
September 2, 2012 11:23
-
-
Save biot023/3597227 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
namespace poc { | |
template <typename T> | |
struct IPoc | |
{ | |
virtual ~IPoc() {} | |
virtual const bool operator() () = 0; | |
virtual void abstract_method() const = 0; | |
}; | |
template <typename T> | |
class Poc : public IPoc<T> | |
{ | |
public: | |
virtual const bool operator() () { | |
return ( _do_subtask1() && _do_subtask2() ); | |
} | |
protected: | |
virtual const bool _do_subtask1() { return false; } | |
virtual const bool _do_subtask2() = 0; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment