mirror of
https://github.com/CHN-beta/nixos.git
synced 2024-10-24 21:18:45 +08:00
15 lines
277 B
C++
15 lines
277 B
C++
|
# 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();
|
||
|
}
|
||
|
}
|