Set c++ version to c++23

I followed @pennae's advice and moved the constructor definition of
`AttrName` from the header file `nixexpr.hh` to `nixexpr.cc`.

Change-Id: I733f56c25635b366b11ba332ccec38dd7444e793
This commit is contained in:
Lulu
2024-10-08 20:05:28 +02:00
parent 43e79f4434
commit 4ea8c9d643
3 changed files with 11 additions and 3 deletions
+8
View File
@@ -21,6 +21,14 @@ std::ostream & operator <<(std::ostream & str, const SymbolStr & symbol)
return printIdentifier(str, s);
}
AttrName::AttrName(Symbol s) : symbol(s)
{
}
AttrName::AttrName(std::unique_ptr<Expr> e) : expr(std::move(e))
{
}
void Expr::show(const SymbolTable & symbols, std::ostream & str) const
{
abort();
+2 -2
View File
@@ -30,8 +30,8 @@ struct AttrName
{
Symbol symbol;
std::unique_ptr<Expr> expr;
AttrName(Symbol s) : symbol(s) {};
AttrName(std::unique_ptr<Expr> e) : expr(std::move(e)) {};
AttrName(Symbol s);
AttrName(std::unique_ptr<Expr> e);
};
typedef std::vector<AttrName> AttrPath;