Skip to content

Commit

Permalink
bump to robin_map v1.3.0, check via compile-time assertion
Browse files Browse the repository at this point in the history
  • Loading branch information
wjakob committed Apr 20, 2024
1 parent 9f4e46b commit 076f2f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ext/robin_map
4 changes: 4 additions & 0 deletions src/nb_internals.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@
#include <functional>
#include "hash.h"

#if TSL_RH_VERSION_MAJOR != 1 || TSL_RH_VERSION_MINOR < 3
# error nanobind depends on tsl::robin_map, in particular version >= 1.3.0, <2.0.0
#endif

#if defined(_MSC_VER)
# define NB_THREAD_LOCAL __declspec(thread)
#else
Expand Down

0 comments on commit 076f2f7

Please sign in to comment.