Browse Source

include base64 headers to subsequently include necessary boost header files, instead of including them from our own header files directly.
this will fix build problems in different versions of boost.


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@2552 e5f2f494-b856-4b98-b285-d166d9295462

JINMEI Tatuya 15 years ago
parent
commit
ee16d6b53a

+ 2 - 4
src/lib/dns/util/base16_from_binary.h

@@ -26,10 +26,8 @@ namespace std{
 } // namespace std
 #endif
 
-#include <boost/serialization/pfto.hpp>
-
-#include <boost/iterator/transform_iterator.hpp>
-#include <boost/archive/iterators/dataflow_exception.hpp>
+// See base32hex_from_binary.h for why we need base64_from...hpp here.
+#include <boost/archive/iterators/base64_from_binary.hpp>
 
 namespace boost { 
 namespace archive {

+ 4 - 4
src/lib/dns/util/base32hex_from_binary.h

@@ -26,10 +26,10 @@ namespace std{
 } // namespace std
 #endif
 
-#include <boost/serialization/pfto.hpp>
-
-#include <boost/iterator/transform_iterator.hpp>
-#include <boost/archive/iterators/dataflow_exception.hpp>
+// We use the same boost header files used in "base64_from_".  Since the
+// precise path to these headers may vary depending on the boost version we
+// simply include the base64 header here.
+#include <boost/archive/iterators/base64_from_binary.hpp>
 
 namespace boost { 
 namespace archive {

+ 2 - 7
src/lib/dns/util/binary_from_base16.h

@@ -18,13 +18,8 @@
 
 #include <cassert>
 
-#include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME
-#include <boost/serialization/throw_exception.hpp>
-#include <boost/serialization/pfto.hpp>
-#include <boost/static_assert.hpp>
-
-#include <boost/iterator/transform_iterator.hpp>
-#include <boost/archive/iterators/dataflow_exception.hpp>
+// See binary_from_base32hex.h for why we need _from_base64.hpp here.
+#include <boost/archive/iterators/binary_from_base64.hpp>
 
 #include <exceptions/exceptions.h>
 

+ 4 - 7
src/lib/dns/util/binary_from_base32hex.h

@@ -18,13 +18,10 @@
 
 #include <cassert>
 
-#include <boost/config.hpp> // for BOOST_DEDUCED_TYPENAME
-#include <boost/serialization/throw_exception.hpp>
-#include <boost/serialization/pfto.hpp>
-#include <boost/static_assert.hpp>
-
-#include <boost/iterator/transform_iterator.hpp>
-#include <boost/archive/iterators/dataflow_exception.hpp>
+// We use the same boost header files used in "_from_base64".  Since the
+// precise path to these headers may vary depending on the boost version we
+// simply include the base64 header here.
+#include <boost/archive/iterators/binary_from_base64.hpp>
 
 #include <exceptions/exceptions.h>