#ifndef BANDIT_VALUEPROXY_H #define BANDIT_VALUEPROXY_H #include "MatchProxy.h" namespace bandit { namespace Matchers { template class ValueProxy { public: MatchProxy to; MatchProxy to_not; explicit ValueProxy(const char* filename, int lineNumber, const T& value) : to(*this), to_not(*this, true), _value(value), _filename(filename), _lineNumber(lineNumber) {} private: friend class MatchProxy; const T& _value; std::string _filename; int _lineNumber; }; }} #endif // BANDIT_VALUEPROXY_H