From 2811680d652989ab2e2f9e12efd6f6de6169fa18 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 19 Apr 2011 17:53:23 +0200 Subject: Add additional new_node overload --- odb/semantics/unit.hxx | 23 +++++++++++++++++------ 1 file changed, 17 insertions(+), 6 deletions(-) (limited to 'odb/semantics') diff --git a/odb/semantics/unit.hxx b/odb/semantics/unit.hxx index 3a116f4..306d4c3 100644 --- a/odb/semantics/unit.hxx +++ b/odb/semantics/unit.hxx @@ -39,7 +39,7 @@ namespace semantics } public: - template + template T& new_node (path const& file, size_t line, size_t column) { @@ -48,7 +48,7 @@ namespace semantics return r; } - template + template T& new_node (path const& file, size_t line, size_t column, A0 const& a0) { @@ -57,7 +57,7 @@ namespace semantics return r; } - template + template T& new_node (path const& file, size_t line, size_t column, A0 const& a0, A1 const& a1) @@ -67,7 +67,7 @@ namespace semantics return r; } - template + template T& new_node (path const& file, size_t line, size_t column, A0 const& a0, A1 const& a1, A2 const& a2) @@ -77,7 +77,7 @@ namespace semantics return r; } - template + template T& new_node (path const& file, size_t line, size_t column, A0 const& a0, A1 const& a1, A2 const& a2, A3 const& a3) @@ -87,9 +87,20 @@ namespace semantics return r; } + template + T& + new_node (path const& file, size_t line, size_t column, + A0 const& a0, A1 const& a1, A2 const& a2, A3 const& a3, + A4 const& a4) + { + T& r (graph_.new_node (file, line, column, a0, a1, a2, a3, a4)); + r.unit (*this); + return r; + } + // For fundamental types. // - template + template T& new_fund_node (tree tn) { -- cgit v1.1