Skip to content

Commit

Permalink
[ci] Fix a build issue with libstdc++13 until it gets fixed in boost
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed May 23, 2023
1 parent 740bede commit a883b26
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
5 changes: 5 additions & 0 deletions src/ossia/context.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,12 @@ boost::asio::detail::winsock_init<>::manual manual_winsock_init;

namespace ossia
{
invalid_callback_error::invalid_callback_error() = default;
invalid_callback_error::~invalid_callback_error() = default;
const char* invalid_callback_error::what() const noexcept
{
return "Bad callback";
}

static void ossia_global_init()
{
Expand Down
5 changes: 2 additions & 3 deletions src/ossia/dataflow/graph/graph_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@

#include <ankerl/unordered_dense.h>

#if defined(BOOST_COMP_GNUC)
#if BOOST_COMP_GNUC >= BOOST_VERSION_NUMBER(13, 0, 0)
#if BOOST_LIB_STD_GNU >= BOOST_VERSION_NUMBER(13, 0, 0) \
&& BOOST_VERSION_NUMBER <= BOOST_VERSION_NUMBER(1, 83, 0)
#define OSSIA_SMALL_VECTOR_ALLOCATOR_REBIND_FAILS 1
#endif
#endif

class DataflowTest;
namespace ossia
Expand Down
14 changes: 4 additions & 10 deletions src/ossia/detail/callback_container.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,11 @@ namespace ossia
*
* Means that an invalid callback was passed
*/
struct OSSIA_EXPORT invalid_callback_error final : public std::logic_error
struct OSSIA_EXPORT invalid_callback_error final : public std::exception
{
invalid_callback_error(const char* e)
: std::logic_error(e)
{
}

~invalid_callback_error() override;
invalid_callback_error()
: std::logic_error("Bad callback")
{
}
invalid_callback_error();
const char* what() const noexcept override;
};

template <typename T>
Expand Down Expand Up @@ -231,4 +224,5 @@ class callback_container
impl m_callbacks TS_GUARDED_BY(m_mutx);
mutable mutex m_mutx;
};

}

0 comments on commit a883b26

Please sign in to comment.