fixes #209 download core in gradle task
This commit is contained in:
parent
ad7ebef1a9
commit
d5ad23bad4
|
@ -46,22 +46,24 @@ T stot(const std::string s) {
|
|||
#define precondition(condition, message) if (!__builtin_expect(condition, 1)) { throw std::runtime_error(message); }
|
||||
|
||||
// FIXME: TrueExpression and FalseExpression should be supported by core in some way
|
||||
struct TrueExpression : realm::Expression {
|
||||
size_t find_first(size_t start, size_t end) const override
|
||||
class TrueExpression : public realm::Expression {
|
||||
public:
|
||||
virtual size_t find_first(size_t start, size_t end) const
|
||||
{
|
||||
if (start != end)
|
||||
return start;
|
||||
|
||||
return not_found;
|
||||
}
|
||||
void set_table() override {}
|
||||
const Table* get_table() const override { return nullptr; }
|
||||
virtual void set_table(const Table* table) {}
|
||||
virtual const Table* get_table() const { return nullptr; }
|
||||
};
|
||||
|
||||
struct FalseExpression : realm::Expression {
|
||||
size_t find_first(size_t, size_t) const override { return not_found; }
|
||||
void set_table() override {}
|
||||
const Table* get_table() const override { return nullptr; }
|
||||
class FalseExpression : public realm::Expression {
|
||||
public:
|
||||
virtual size_t find_first(size_t, size_t) const { return not_found; }
|
||||
virtual void set_table(const Table* table) {}
|
||||
virtual const Table* get_table() const { return nullptr; }
|
||||
};
|
||||
|
||||
using KeyPath = std::vector<std::string>;
|
||||
|
|
Loading…
Reference in New Issue