Skip to content

Commit 6f1d034

Browse files
committed
add missing inline for some static const members
1 parent 78a5233 commit 6f1d034

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/vclib/mesh/components/bit_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ class BitFlags :
9999
/**
100100
* @brief Static number of bits that can have custom meanings to the user
101101
*/
102-
static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT;
102+
inline static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT;
103103

104104
/* Constructors */
105105

include/vclib/mesh/components/polygon_bit_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ class PolygonBitFlags :
137137
/**
138138
* @brief Static number of bits that can have custom meanings to the user
139139
*/
140-
static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT;
140+
inline static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT;
141141

142142
/**
143143
* @brief Static number of bits for each edge that can have custom meanings

include/vclib/mesh/components/triangle_bit_flags.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ class TriangleBitFlags :
117117
/**
118118
* @brief Static number of bits that can have custom meanings to the user
119119
*/
120-
static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT;
120+
inline static const uint USER_BITS_NUMBER = sizeof(FT) * 8 - FIRST_USER_BIT;
121121

122122
/* Constructors */
123123

0 commit comments

Comments
 (0)