Skip to content

Commit fc00ecf

Browse files
author
Andrei Popescu
authored
Fix boost::throw_exception include missing. (#815)
During clang-format the include order in Base64.cpp was reordered which results in broken build on system with disabled exceptions. This is now fixed. Resolves: OLPEDGE-1883 Signed-off-by: Andrei Popescu <andrei.popescu@here.com>
1 parent 5848123 commit fc00ecf

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

olp-cpp-sdk-core/src/utils/Base64.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,14 @@
2121

2222
#include <algorithm>
2323

24+
// clang-format off
25+
// Do not change this order as throw_exception.hpp defines
26+
// boost::throw_exception needed by all other boost classes
27+
#include <boost/throw_exception.hpp>
2428
#include <boost/archive/iterators/base64_from_binary.hpp>
2529
#include <boost/archive/iterators/binary_from_base64.hpp>
2630
#include <boost/archive/iterators/transform_width.hpp>
27-
#include <boost/throw_exception.hpp>
31+
// clang-format on
2832

2933
namespace olp {
3034
namespace utils {

0 commit comments

Comments
 (0)