From cb95431b072f5519a083a59e878255c5bcab64d1 Mon Sep 17 00:00:00 2001 From: jthorn Date: Tue, 1 Feb 2005 14:58:53 +0000 Subject: fix a C++ namespaces bug found by Erik: error_exit() was declared extern "C" --> it wasn't namespace-mangled --> it could conflict with a similar error_exit() in another thorn although this fix touches a *lot* of files, it's conceptually simple: * error_exit() is not extern "C" any more * everything in src/jtutil/ (which used to be in the jtutil:: namespace) is now in the AHFinderDirect::jtutil:: namespace --> all C++ code in this thorn is now inside the AHFinderDirect:: namespace git-svn-id: http://svn.einsteintoolkit.org/cactus/EinsteinAnalysis/AHFinderDirect/trunk@1395 f88db872-0e4f-0410-b76b-b9085cfa78c5 --- src/jtutil/array.hh | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) (limited to 'src/jtutil/array.hh') diff --git a/src/jtutil/array.hh b/src/jtutil/array.hh index bf70628..96bb87a 100644 --- a/src/jtutil/array.hh +++ b/src/jtutil/array.hh @@ -62,10 +62,14 @@ // #endif -//****************************************************************************** - +// everything in this file is inside these namespaces +namespace AHFinderDirect + { namespace jtutil { + +//****************************************************************************** + template class array1d { @@ -146,12 +150,9 @@ private: bool we_own_array_; // true ==> array_ --> new[] array which we own // false ==> array_ --> client-owned storage }; - } // namespace jtutil:: //****************************************************************************** -namespace jtutil - { template class array2d { @@ -243,12 +244,9 @@ private: bool we_own_array_; // true ==> array_ --> new[] array which we own // false ==> array_ --> client-owned storage }; - } // namespace jtutil:: //****************************************************************************** -namespace jtutil - { template class array3d { @@ -348,13 +346,10 @@ private: bool we_own_array_; // true ==> array_ --> new[] array which we own // false ==> array_ --> client-owned storage }; - } // namespace jtutil:: //****************************************************************************** #ifdef NOT_USED -namespace jtutil - { template class array4d { @@ -469,9 +464,11 @@ private: bool we_own_array_; // true ==> array_ --> new[] array which we own // false ==> array_ --> client-owned storage }; - } // namespace jtutil:: #endif /* NOT_USED */ //****************************************************************************** + }; // namespace jtutil + }; // namespace AHFinderDirect + #endif /* AHFINDERDIRECT__ARRAY_HH */ -- cgit v1.2.3