Skip to content

Commit 744451a

Browse files
Merge pull request #1014 from Geode-solutions/fix/missing_macro_template_assert_2d
fix(macro): Added missing macro for template check 2d
2 parents cddb787 + 9a41d64 commit 744451a

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

bindings/python/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
# This file is autogenerated by pip-compile with Python 3.10
33
# by the following command:
44
#
5-
# pip-compile bindings/python/requirements.in
5+
# pip-compile --pre bindings/python/requirements.in
66
#

include/geode/basic/common.hpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public: \
6060
static_assert( \
6161
( type ) == 2 || type == 3, #type " template should be 2 or 3" )
6262

63+
#define OPENGEODE_TEMPLATE_ASSERT_2D( type ) \
64+
static_assert( ( type ) == 2, #type " template should be 2" )
65+
6366
#define OPENGEODE_TEMPLATE_ASSERT_3D( type ) \
6467
static_assert( ( type ) == 3, #type " template should be 3" )
6568

0 commit comments

Comments
 (0)