Skip to content

Commit

Permalink
[ci] More ci work
Browse files Browse the repository at this point in the history
  • Loading branch information
jcelerier committed Oct 13, 2024
1 parent 7ceb681 commit 70eb46f
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmake/libremidi.deps.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ if(LIBREMIDI_NO_BOOST AND LIBREMIDI_FIND_BOOST)
endif()

if(LIBREMIDI_FIND_BOOST)
find_package(Boost REQUIRED OPTIONAL_COMPONENTS cobalt)
find_package(Boost REQUIRED)
find_package(Boost OPTIONAL_COMPONENTS cobalt)
endif()

# readerwriterqueue
Expand Down
15 changes: 15 additions & 0 deletions include/libremidi/writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,21 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <ostream>
#include <string>

#if !defined(__cpp_lib_bit_cast)
namespace std
{
template <typename _To, typename _From>
[[nodiscard]]
constexpr _To bit_cast(const _From& __from) noexcept
#ifdef __cpp_concepts
requires(sizeof(_To) == sizeof(_From))
&& is_trivially_copyable_v<_To> && is_trivially_copyable_v<_From>
#endif
{
return __builtin_bit_cast(_To, __from);
}
}
#endif
namespace libremidi
{
namespace util
Expand Down

0 comments on commit 70eb46f

Please sign in to comment.