avro-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 김우현 <woor...@nhn.com>
Subject c++ patch in avro v1.0.0
Date Fri, 31 Jul 2009 07:28:34 GMT
To successfully install and test, the avro-1.0.0 for C++ should be patched as follows:
 
diff -ruN api.old/AvroTraits.hh api/AvroTraits.hh
--- api.old/AvroTraits.hh       2009-08-01 01:44:25.725977672 +0900
+++ api/AvroTraits.hh   2009-08-01 01:45:08.142529376 +0900
@@ -20,6 +20,7 @@
 #define avro_AvroTraits_hh__
 #include <boost/type_traits.hpp>
+#include <boost/pending/ct_if.hpp>
 #include "Types.hh"
diff -ruN scripts.old/gen.py scripts/gen.py
--- scripts.old/gen.py  2009-08-01 01:44:32.048016576 +0900
+++ scripts/gen.py      2009-08-01 01:45:43.737118176 +0900
@@ -105,7 +105,7 @@
 $setfuncs$
     template<typename T>
     const T &getValue() const {
-        return boost::any_cast<const T&>(value);
+       return *boost::any_cast<const T>(&value);
     }
     int64_t choice;

I will also attach the patch file for avro c++ users.
 
 
 
 

Woohyun Kim 
A Creator of Open Source "Coord" 

Tel  031-784-2575   Mobile  010-6420-2409  
Email  woorung@nhn.com  or  woorung@gmail.com <mailto:woorung@nhn.comor?woorung@gmail.com>
   


Messenger  webrobot@hotmail.com 



Coord is an open source platform for cloud computing. 


coord         http://www.coordguru.com <http://www.coordguru.com/> 
mailinglist  http://groups.google.com/group/coordguru


 


Mime
View raw message