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); }
|
#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
|
// FIXME: TrueExpression and FalseExpression should be supported by core in some way
|
||||||
struct TrueExpression : realm::Expression {
|
class TrueExpression : public realm::Expression {
|
||||||
size_t find_first(size_t start, size_t end) const override
|
public:
|
||||||
|
virtual size_t find_first(size_t start, size_t end) const
|
||||||
{
|
{
|
||||||
if (start != end)
|
if (start != end)
|
||||||
return start;
|
return start;
|
||||||
|
|
||||||
return not_found;
|
return not_found;
|
||||||
}
|
}
|
||||||
void set_table() override {}
|
virtual void set_table(const Table* table) {}
|
||||||
const Table* get_table() const override { return nullptr; }
|
virtual const Table* get_table() const { return nullptr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
struct FalseExpression : realm::Expression {
|
class FalseExpression : public realm::Expression {
|
||||||
size_t find_first(size_t, size_t) const override { return not_found; }
|
public:
|
||||||
void set_table() override {}
|
virtual size_t find_first(size_t, size_t) const { return not_found; }
|
||||||
const Table* get_table() const override { return nullptr; }
|
virtual void set_table(const Table* table) {}
|
||||||
|
virtual const Table* get_table() const { return nullptr; }
|
||||||
};
|
};
|
||||||
|
|
||||||
using KeyPath = std::vector<std::string>;
|
using KeyPath = std::vector<std::string>;
|
||||||
|
|
Loading…
Reference in New Issue