summaryrefslogtreecommitdiffstats
path: root/c++/src/H5IdComponent.h
diff options
context:
space:
mode:
authorBinh-Minh Ribler <bmribler@hdfgroup.org>2005-08-18 22:16:56 (GMT)
committerBinh-Minh Ribler <bmribler@hdfgroup.org>2005-08-18 22:16:56 (GMT)
commit6496413284a3319bc41ad3ebde3783bae02d6e23 (patch)
tree0d46e5948389c2e64b75a56b9d73789c44a8f16b /c++/src/H5IdComponent.h
parentf27f7c7821350c31dc252cca2b875ae35e5516db (diff)
downloadhdf5-6496413284a3319bc41ad3ebde3783bae02d6e23.zip
hdf5-6496413284a3319bc41ad3ebde3783bae02d6e23.tar.gz
hdf5-6496413284a3319bc41ad3ebde3783bae02d6e23.tar.bz2
[svn-r11264] Purpose: Additional code improvement
Description: Used "using" declaration and directive better to reduce namespace pollution. Platforms tested: Linux 2.4 (heping) SunOS 5.8 64-bit (sol)
Diffstat (limited to 'c++/src/H5IdComponent.h')
-rw-r--r--c++/src/H5IdComponent.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/c++/src/H5IdComponent.h b/c++/src/H5IdComponent.h
index 33fa7d2..5648380 100644
--- a/c++/src/H5IdComponent.h
+++ b/c++/src/H5IdComponent.h
@@ -61,10 +61,18 @@ class H5_DLLCPP IdComponent {
// Makes and returns the string "<class-name>::<func_name>";
// <class-name> is returned by fromClass().
+#ifdef H5_NO_STD
string inMemFunc(const char* func_name) const;
+#else
+ std::string inMemFunc(const char* func_name) const;
+#endif // H5_NO_STD
// Returns this class name.
+#ifdef H5_NO_STD
virtual string fromClass() const {return ("IdComponent");}
+#else
+ virtual std::string fromClass() const {return ("IdComponent");}
+#endif // H5_NO_STD
#endif // DOXYGEN_SHOULD_SKIP_THIS