diff options
author | John Wiegley <johnw@newartisans.com> | 2007-05-19 02:58:38 +0000 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2008-04-13 03:38:53 -0400 |
commit | b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c (patch) | |
tree | 6cfe58ee8e093d310aa7ea84de87db3190c576bf /src/utils.h | |
parent | 2d8512af88eab26176089e53916f309f2d3b3be4 (diff) | |
download | fork-ledger-b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c.tar.gz fork-ledger-b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c.tar.bz2 fork-ledger-b6ab7deb63d3e3e22ecd4d6c70c6249db2ba558c.zip |
Completely revised the way XPath expressions are calculated.
Diffstat (limited to 'src/utils.h')
-rw-r--r-- | src/utils.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 <typename T, typename U> +inline T& downcast(U& object) { + return *polymorphic_downcast<T *>(&object); +} + path resolve_path(const path& pathname); #ifdef HAVE_REALPATH |