From c8088a8209ffc787bff6a4b07afc90b41120758e Mon Sep 17 00:00:00 2001 From: Andrew Noyes Date: Mon, 6 May 2024 10:09:51 -0700 Subject: [PATCH] static_assert that Iterator is conformant bidi iterator --- VersionedMap.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VersionedMap.cpp b/VersionedMap.cpp index 13a0fe2..454e737 100644 --- a/VersionedMap.cpp +++ b/VersionedMap.cpp @@ -21,6 +21,8 @@ bool debugVerboseEnabled = true; #endif +static_assert(std::bidirectional_iterator); + void *mmapSafe(void *addr, size_t len, int prot, int flags, int fd, off_t offset) { void *result = mmap(addr, len, prot, flags, fd, offset);