Skip to content

Commit 7084025

Browse files
committed
Add split by string delimiter support for tlx::split
1 parent f05f775 commit 7084025

File tree

6 files changed

+536
-191
lines changed

6 files changed

+536
-191
lines changed

3rdparty/yasio/yasio/tlx/memory.hpp

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ SOFTWARE.
3333
#include <string.h>
3434
#include <iterator>
3535
#include <type_traits>
36+
#include <assert.h>
3637

3738
#include "yasio/compiler/feature_test.hpp"
3839

@@ -450,17 +451,7 @@ constexpr _OutIt copy_n_unchecked4(_InIt first, _SizeTy count, _OutIt dest)
450451

451452
} // namespace tlx
452453

453-
#define _TLX_VERIFY_RANGE(cond, mesg) \
454-
do \
455-
{ \
456-
if (cond) \
457-
; /* contextually convertible to bool paranoia */ \
458-
else \
459-
{ \
460-
throw std::out_of_range(mesg); \
461-
} \
462-
\
463-
} while (false)
454+
#define _TLX_VERIFY(cond, mesg) assert(cond && mesg)
464455

465456
#define _TLX_INTERNAL_CHECK(cond) assert(cond)
466457

0 commit comments

Comments
 (0)