nixos/local/pkgs/biu/src/common.cpp

15 lines
277 B
C++
Raw Normal View History

2024-04-02 11:08:47 +08:00
# include <future>
# include <utility>
# include <biu.hpp>
namespace biu
{
std::regex literals::operator""_re(const char* str, std::size_t len)
{ return std::regex{str, len}; }
void block_forever()
{
std::promise<void>().get_future().wait();
std::unreachable();
}
}