mirror of
https://github.com/matrix-construct/construct
synced 2024-11-26 00:32:35 +01:00
ircd: Add #ifdef around experimental string_view for non-c++17.
This commit is contained in:
parent
f6e0a8e143
commit
b2a6d4ebab
1 changed files with 2 additions and 0 deletions
|
@ -135,10 +135,12 @@ extern "C" {
|
|||
#define AFGP(a, b) __attribute__((format(gnu_printf, a, b)))
|
||||
|
||||
// Experimental std::string_view
|
||||
#if __cplusplus <= 201703 //TODO: refine
|
||||
namespace std
|
||||
{
|
||||
using experimental::string_view;
|
||||
}
|
||||
#endif
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
|
|
Loading…
Reference in a new issue