static_assert that Iterator is conformant bidi iterator
This commit is contained in:
@@ -21,6 +21,8 @@
|
|||||||
bool debugVerboseEnabled = true;
|
bool debugVerboseEnabled = true;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static_assert(std::bidirectional_iterator<weaselab::VersionedMap::Iterator>);
|
||||||
|
|
||||||
void *mmapSafe(void *addr, size_t len, int prot, int flags, int fd,
|
void *mmapSafe(void *addr, size_t len, int prot, int flags, int fd,
|
||||||
off_t offset) {
|
off_t offset) {
|
||||||
void *result = mmap(addr, len, prot, flags, fd, offset);
|
void *result = mmap(addr, len, prot, flags, fd, offset);
|
||||||
|
Reference in New Issue
Block a user