diff options
Diffstat (limited to 'vbench/src/vbench/core/taintable.h')
-rw-r--r-- | vbench/src/vbench/core/taintable.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/vbench/src/vbench/core/taintable.h b/vbench/src/vbench/core/taintable.h new file mode 100644 index 00000000000..2702c2e2736 --- /dev/null +++ b/vbench/src/vbench/core/taintable.h @@ -0,0 +1,21 @@ +// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root. + +#pragma once + +#include "taint.h" + +namespace vbench { + +/** + * Interface used to report what went wrong. Implementing this + * interface indicates that something could go wrong. + **/ +struct Taintable +{ + static const Taintable &nil(); + virtual const Taint &tainted() const = 0; + virtual ~Taintable() {} +}; + +} // namespace vbench + |