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 [email protected] or [email protected]
<mailto:[email protected]젨[email protected]>
Messenger [email protected]
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
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;