summaryrefslogtreecommitdiff
path: root/lib/pmc_to_ptree.cpp
diff options
context:
space:
mode:
authorJosh Blum2013-06-08 09:57:28 -0700
committerJosh Blum2013-06-08 09:57:28 -0700
commitbe8b87885521110ea387831820d105d142de0206 (patch)
tree6efb66c0e128d2ce7ebc275a177d980dd5d04655 /lib/pmc_to_ptree.cpp
parent3a24238960cdedb3a46eb3c5d2eee5d2bf8d806f (diff)
downloadsandhi-be8b87885521110ea387831820d105d142de0206.tar.gz
sandhi-be8b87885521110ea387831820d105d142de0206.tar.bz2
sandhi-be8b87885521110ea387831820d105d142de0206.zip
gras: query changes from thread query branch
Diffstat (limited to 'lib/pmc_to_ptree.cpp')
-rw-r--r--lib/pmc_to_ptree.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/pmc_to_ptree.cpp b/lib/pmc_to_ptree.cpp
index 1037d7e..6565fa6 100644
--- a/lib/pmc_to_ptree.cpp
+++ b/lib/pmc_to_ptree.cpp
@@ -1,5 +1,6 @@
// Copyright (C) by Josh Blum. See LICENSE.txt for licensing information.
+#include "gras_impl/query_common.hpp"
#include "gras_impl/debug.hpp"
#include <PMC/PMC.hpp>
#include <PMC/Containers.hpp>
@@ -11,7 +12,7 @@
using namespace boost::property_tree;
-PMCC ptree_to_pmc(const ptree &value, const std::type_info &hint)
+PMCC gras::ptree_to_pmc(const ptree &value, const std::type_info &hint)
{
//if the type is PMCC - educated guess and recursively call
if (hint == typeid(PMCC) or hint == typeid(PMC))
@@ -82,7 +83,7 @@ PMCC ptree_to_pmc(const ptree &value, const std::type_info &hint)
return PMC();
}
-ptree pmc_to_ptree(const PMCC &value)
+ptree gras::pmc_to_ptree(const PMCC &value)
{
ptree v;
#define pmc_to_ptree_try(type) \