1
+ #include < boost/config.hpp>
1
2
#include < boost/network/utils/base64/encode.hpp>
2
3
#include < boost/network/utils/base64/encode-io.hpp>
3
4
#include " utils/base64-standalone.hpp"
5
+ // Since we're having issues with libc++ on OS X we're excluding this in the
6
+ // meantime if we're using libc++
7
+ #ifndef _LIBCPP_VERSION
4
8
#include " utils/base64-stateless.hpp"
5
9
#include " utils/base64-stateful_buffer.hpp"
10
+ #endif
6
11
#include " utils/base64-stateful_iterator.hpp"
7
12
#include " utils/base64-stateful_transform.hpp"
8
13
#include < iostream>
@@ -58,6 +63,8 @@ using namespace boost::network::utils;
58
63
base64::encode_rest (result_encoder, rest)
59
64
60
65
// testing the code from experimental/base64-stateless.hpp
66
+ // NOTE(dberris): Only do this if we're NOT using libc++.
67
+ #ifndef _LIBCPP_VERSION
61
68
#define base64 base64_stateless
62
69
#include " utils_base64_experiment.ipp"
63
70
#undef base64
@@ -70,6 +77,7 @@ using namespace boost::network::utils;
70
77
#define base64 base64_stateful_buffer
71
78
#include " utils_base64_experiment.ipp"
72
79
#undef base64
80
+ #endif // _LIBCPP_VERSION
73
81
74
82
// testing the code from experimental/base64-stateful_transform.hpp
75
83
#define base64 base64_stateful_transform