summaryrefslogtreecommitdiffstats
path: root/staptree.h
diff options
context:
space:
mode:
authorbrolley <brolley>2008-01-24 16:43:13 +0000
committerbrolley <brolley>2008-01-24 16:43:13 +0000
commitedc22ba9b105fd944f39cf536346ff68c2c8d0aa (patch)
treeb2c77ae5be2e2bad26be325cc6a7b33ce3ebcb14 /staptree.h
parent37d728f025d436dac4081ff47b2d3125ac27ea82 (diff)
downloadsystemtap-steved-edc22ba9b105fd944f39cf536346ff68c2c8d0aa.tar.gz
systemtap-steved-edc22ba9b105fd944f39cf536346ff68c2c8d0aa.tar.xz
systemtap-steved-edc22ba9b105fd944f39cf536346ff68c2c8d0aa.zip
2008-01-24 Dave Brolley <brolley@redhat.com>
PR 5017. * staptree.cxx (<cstring>): #include it. (required <indexable *>): Remove 'static' from instantiation and move instantiation to here from... * staptree.h: ...here.
Diffstat (limited to 'staptree.h')
-rw-r--r--staptree.h27
1 files changed, 2 insertions, 25 deletions
diff --git a/staptree.h b/staptree.h
index 4584d32d..5b4b56cd 100644
--- a/staptree.h
+++ b/staptree.h
@@ -846,31 +846,8 @@ require (deep_copy_visitor* v, T* dst, T src)
}
}
-template <> static void
-require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src)
-{
- if (src != NULL)
- {
- symbol *array_src=NULL, *array_dst=NULL;
- hist_op *hist_src=NULL, *hist_dst=NULL;
-
- classify_indexable(src, array_src, hist_src);
-
- *dst = NULL;
-
- if (array_src)
- {
- require <symbol*> (v, &array_dst, array_src);
- *dst = array_dst;
- }
- else
- {
- require <hist_op*> (v, &hist_dst, hist_src);
- *dst = hist_dst;
- }
- assert (*dst);
- }
-}
+template <> void
+require <indexable *> (deep_copy_visitor* v, indexable** dst, indexable* src);
template <typename T> void
provide (deep_copy_visitor* v, T src)