Skip to content

Commit c150870

Browse files
committed
Disable some tests for Base64 encoding/decoding with libc++ due to Boost bugs.
1 parent 43eca38 commit c150870

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

libs/network/experiment/utils_base64_experiment.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
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;
5863
base64::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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy