1+ #include < boost/config.hpp>
12#include < boost/network/utils/base64/encode.hpp>
23#include < boost/network/utils/base64/encode-io.hpp>
34#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
48#include " utils/base64-stateless.hpp"
59#include " utils/base64-stateful_buffer.hpp"
10+ #endif
611#include " utils/base64-stateful_iterator.hpp"
712#include " utils/base64-stateful_transform.hpp"
813#include < iostream>
@@ -58,6 +63,8 @@ using namespace boost::network::utils;
5863base64::encode_rest (result_encoder, rest)
5964
6065// testing the code from experimental/base64-stateless.hpp
66+ // NOTE(dberris): Only do this if we're NOT using libc++.
67+ #ifndef _LIBCPP_VERSION
6168#define base64 base64_stateless
6269#include " utils_base64_experiment.ipp"
6370#undef base64
@@ -70,6 +77,7 @@ using namespace boost::network::utils;
7077#define base64 base64_stateful_buffer
7178#include " utils_base64_experiment.ipp"
7279#undef base64
80+ #endif // _LIBCPP_VERSION
7381
7482// testing the code from experimental/base64-stateful_transform.hpp
7583#define base64 base64_stateful_transform