aboutsummaryrefslogtreecommitdiffstats
path: root/vbench/src/vbench/core/taintable.cpp
blob: 5409379e02c2c2b94ad23d084b0280dc797eacf1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 2016 Yahoo Inc. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.

#include <vespa/fastos/fastos.h>
#include "taintable.h"

namespace vbench {

namespace {

struct Untaintable : Taintable {
    Taint taint;
    virtual const Taint &tainted() const { return taint; }
    virtual ~Untaintable() {}
};

Untaintable untaintable;

} // namespace vbench::<unnamed>

const Taintable &
Taintable::nil()
{
    return untaintable;
}

} // namespace vbench