From 321addc5fca2ff05a6a8e83dbc90f367e68fd895 Mon Sep 17 00:00:00 2001 From: Saleem Abdulrasool Date: Tue, 26 Feb 2013 20:13:51 -0800 Subject: initialise extern templates in proper namespace The declarations for the template instantions are marked as being under paludis. However, the instantiations were being made without an explict enclosing namespace, which results in an ambiguity. Explicitly indicate the namespace for template instantiations. --- src/clients/cave/format_string.cc | 5 ++++- src/clients/cave/format_user_config.cc | 5 ++++- src/clients/cave/resolve_common.cc | 9 ++++++--- 3 files changed, 14 insertions(+), 5 deletions(-) (limited to 'src/clients') diff --git a/src/clients/cave/format_string.cc b/src/clients/cave/format_string.cc index 25e3a73fd..4802e9c6e 100644 --- a/src/clients/cave/format_string.cc +++ b/src/clients/cave/format_string.cc @@ -180,5 +180,8 @@ paludis::cave::format_string( return result; } -template class Map; +namespace paludis +{ + template class Map; +} diff --git a/src/clients/cave/format_user_config.cc b/src/clients/cave/format_user_config.cc index 3af8a3584..2b6f33b76 100644 --- a/src/clients/cave/format_user_config.cc +++ b/src/clients/cave/format_user_config.cc @@ -123,5 +123,8 @@ FormatUserConfigFile::fetch(const std::string & v, int vi, const std::string & d return result; } -template class Singleton; +namespace paludis +{ + template class Singleton; +} diff --git a/src/clients/cave/resolve_common.cc b/src/clients/cave/resolve_common.cc index 00e4c1ce1..630f7e39e 100644 --- a/src/clients/cave/resolve_common.cc +++ b/src/clients/cave/resolve_common.cc @@ -1217,7 +1217,10 @@ paludis::cave::resolve_common( return retcode | 1; } -template class Sequence >; -template class WrappedForwardIterator >::ConstIteratorTag, - const std::pair >; +namespace paludis +{ + template class Sequence >; + template class WrappedForwardIterator >::ConstIteratorTag, + const std::pair >; +} -- cgit v1.2.3