Skip to content

Commit

Permalink
Partial fix for boost versions bigger than 1.71
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasWoodtli committed May 5, 2022
1 parent dfe3297 commit 3a1812b
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ std::string base64encodeImpl(const std::string& str) {
#if BOOST_VERSION < 107100
return boost::beast::detail::base64_encode(str);
#else
return boost::beast::detail::base64::encode(str);
// todo
return str;
#endif
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ std::string base64encodeImpl(const std::string& str) {
#if BOOST_VERSION < 107100
return boost::beast::detail::base64_encode(str);
#else
return boost::beast::detail::base64::encode(str);
// todo
return str;
#endif
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ std::string base64encodeImpl(const std::string& str) {
#if BOOST_VERSION < 107100
return boost::beast::detail::base64_encode(str);
#else
return boost::beast::detail::base64::encode(str);
// todo
return str;
#endif
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,8 @@ std::string base64encodeImpl(const std::string& str) {
#if BOOST_VERSION < 107100
return boost::beast::detail::base64_encode(str);
#else
return boost::beast::detail::base64::encode(str);
// todo
return str;
#endif
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/client/petstore/cpp-boost-beast/tests/api/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#define BOOST_TEST_MODULE ModelTests
#define BOOST_TEST_MODULE ApiTests

//#include <boost/test/unit_test.hpp> // static or dynamic boost build
#include <boost/test/included/unit_test.hpp> // header only boost
Expand Down

0 comments on commit 3a1812b

Please sign in to comment.