Skip to content

Instantly share code, notes, and snippets.

@olegchir
Created January 25, 2018 20:56
Show Gist options
  • Save olegchir/01e53b94dcc96647c03ddb43abd3fdfd to your computer and use it in GitHub Desktop.
Save olegchir/01e53b94dcc96647c03ddb43abd3fdfd to your computer and use it in GitHub Desktop.
#pragma once
class FakeInt {
public:
FakeInt(int value)
: value(value)
{
}
operator int() const
{
return value;
}
template <typename T>
bool operator==(const T& other) const
{
return true;
}
private:
int value;
};
#define int FakeInt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment