diff options
author | Murray Cumming <murrayc@murrayc.com> | 2004-03-14 12:32:44 +0000 |
---|---|---|
committer | Murray Cumming <murrayc@src.gnome.org> | 2004-03-14 12:32:44 +0000 |
commit | 6af98593853a87908c74925613e372a05291b284 (patch) | |
tree | 8837e90d27e702586d4d20c35e9bcfe9ce56a262 /glib/glibmm/value.h | |
parent | b74c642a6703a1e40711547af50251b55cea79c4 (diff) | |
download | glibmm-6af98593853a87908c74925613e372a05291b284.tar.gz |
Used ifdef GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS to
2004-03-14 Murray Cumming <murrayc@murrayc.com>
* glib/glibmm/containerhandle_shared.h value.h: Used ifdef
GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS to avoid
problems with the SUN Forte compiler.
Diffstat (limited to 'glib/glibmm/value.h')
-rw-r--r-- | glib/glibmm/value.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/glib/glibmm/value.h b/glib/glibmm/value.h index 11fbc9a4..cf8cb524 100644 --- a/glib/glibmm/value.h +++ b/glib/glibmm/value.h @@ -206,7 +206,6 @@ public: CppType get() const { return CppType(static_cast<CType>(get_boxed())); } }; - /** Partial specialization for RefPtr<> to Glib::Object. * @ingroup glibmmValue */ @@ -223,6 +222,9 @@ public: CppType get() const { return Glib::RefPtr<T>::cast_dynamic(get_object_copy()); } }; +//The SUN Forte Compiler has a problem with this: +#ifdef GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS + /** Partial specialization for RefPtr<> to const Glib::Object. * @ingroup glibmmValue */ @@ -238,6 +240,7 @@ public: void set(const CppType& data) { set_object(const_cast<T*>(data.operator->())); } CppType get() const { return Glib::RefPtr<T>::cast_dynamic(get_object_copy()); } }; +#endif //GLIBMM_HAVE_DISAMBIGUOUS_CONST_TEMPLATE_SPECIALIZATIONS } // namespace Glib |