From b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Sat, 19 May 2007 02:58:38 +0000 Subject: Completely revised the way XPath expressions are calculated. --- src/utils.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/utils.h') diff --git a/src/utils.h b/src/utils.h index 7bc90fb6..cf1cd1d0 100644 --- a/src/utils.h +++ b/src/utils.h @@ -521,6 +521,11 @@ inline void throw_unexpected_error(char, char) { namespace ledger { +template +inline T& downcast(U& object) { + return *polymorphic_downcast(&object); +} + path resolve_path(const path& pathname); #ifdef HAVE_REALPATH -- cgit v1.2.3