This website requires JavaScript.
Explore
Help
Register
Sign In
oxen-io
/
oxen-mq
mirror of
https://github.com/oxen-io/oxen-mq.git
Watch
1
Star
0
Fork
You've already forked oxen-mq
0
Code
Issues
Projects
Releases
Wiki
Activity
d7f5efebc1
oxen-mq
/
oxenmq
/
variant.h
6 lines
83 B
C
Raw
Normal View
History
Unescape
Escape
macOS 10.12 compatibility Add var::get/var::visit implementations of std::get/std::visit that get used if compiling for an old macos target, and use those. The issue is that on a <10.14 macos target Apple's libc++ is missing std::bad_variant_access, and so any method that can throw it (such as std::get and std::visit) can't be used. This workaround is ugly, but such is life when you want to support running on Apple platforms.
2020-10-15 21:07:45 +02:00
#
pragma once
Use oxen-encoding and add compatibility shim headers bt_*, hex, base32z, base64 all moved to oxen-encoding a while ago; this finishes the move by removing them from oxenmq and instead making oxenmq depend on oxen-encoding.
2022-01-18 15:30:23 +01:00
// Compatibility shim for oxenc includes
macOS 10.12 compatibility Add var::get/var::visit implementations of std::get/std::visit that get used if compiling for an old macos target, and use those. The issue is that on a <10.14 macos target Apple's libc++ is missing std::bad_variant_access, and so any method that can throw it (such as std::get and std::visit) can't be used. This workaround is ugly, but such is life when you want to support running on Apple platforms.
2020-10-15 21:07:45 +02:00
Use oxen-encoding and add compatibility shim headers bt_*, hex, base32z, base64 all moved to oxen-encoding a while ago; this finishes the move by removing them from oxenmq and instead making oxenmq depend on oxen-encoding.
2022-01-18 15:30:23 +01:00
#
include
<oxenc/variant.h>