Boost logo

Boost :

From: Caleb Epstein (caleb.epstein_at_[hidden])
Date: 2004-12-06 13:38:36


The following patch is required to build date_time using the Sun
Workshop C++ compiler. I mentioned this previously in another thread,
but I fear it has been lost.

--- boost/date_time/date_names_put.hpp~ 2004-12-01 08:58:32.846228000 -0500
+++ boost/date_time/date_names_put.hpp 2004-12-01 08:59:38.334228000 -0500
@@ -52,6 +52,11 @@
       typedef std::basic_string<charT> string_type;
 
       static std::locale::id id;
+
+#if defined (__SUNPRO_CC) && defined (_RWSTD_VER)
+ std::locale::id& __get_id (void) const { return id; }
+#endif
+
       void put_special_value(iter_type& oitr, special_value_enum sv) const
       {
         do_put_special_value(oitr, sv);

-- 
Caleb Epstein
caleb dot epstein at gmail dot com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk