Skip to content

Commit ca89a97

Browse files
LukasWoodtlicwilson1776
authored andcommitted
Partial fix for boost versions bigger than 1.71
1 parent 8cacfdf commit ca89a97

5 files changed

Lines changed: 9 additions & 5 deletions

File tree

modules/openapi-generator/src/main/resources/cpp-boost-beast-client/api-source.mustache

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ std::string base64encodeImpl(const std::string& str) {
5454
#if BOOST_VERSION < 107100
5555
return boost::beast::detail::base64_encode(str);
5656
#else
57-
return boost::beast::detail::base64::encode(str);
57+
// todo
58+
return str;
5859
#endif
5960
}
6061
}

samples/client/petstore/cpp-boost-beast/generated/api/PetApi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ std::string base64encodeImpl(const std::string& str) {
6565
#if BOOST_VERSION < 107100
6666
return boost::beast::detail::base64_encode(str);
6767
#else
68-
return boost::beast::detail::base64::encode(str);
68+
// todo
69+
return str;
6970
#endif
7071
}
7172
}

samples/client/petstore/cpp-boost-beast/generated/api/StoreApi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ std::string base64encodeImpl(const std::string& str) {
6565
#if BOOST_VERSION < 107100
6666
return boost::beast::detail::base64_encode(str);
6767
#else
68-
return boost::beast::detail::base64::encode(str);
68+
// todo
69+
return str;
6970
#endif
7071
}
7172
}

samples/client/petstore/cpp-boost-beast/generated/api/UserApi.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ std::string base64encodeImpl(const std::string& str) {
6565
#if BOOST_VERSION < 107100
6666
return boost::beast::detail::base64_encode(str);
6767
#else
68-
return boost::beast::detail::base64::encode(str);
68+
// todo
69+
return str;
6970
#endif
7071
}
7172
}

samples/client/petstore/cpp-boost-beast/tests/api/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#define BOOST_TEST_MODULE ModelTests
1+
#define BOOST_TEST_MODULE ApiTests
22

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

0 commit comments

Comments
 (0)