Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Tiago Peixoto
graph-tool
Commits
95dad5c7
Commit
95dad5c7
authored
Oct 21, 2019
by
Tiago Peixoto
Browse files
blockmodel: add if constexpr
parent
53fe126e
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/graph/inference/blockmodel/graph_blockmodel_partition.hh
View file @
95dad5c7
...
...
@@ -74,7 +74,7 @@ public:
std
::
vector
<
size_t
>&
bmap
)
:
_bmap
(
bmap
),
_N
(
0
),
_E
(
E
),
_total_B
(
B
)
{
if
(
!
use_rmap
)
if
constexpr
(
!
use_rmap
)
{
_hist
.
resize
(
num_vertices
(
g
));
_total
.
resize
(
num_vertices
(
g
));
...
...
@@ -110,7 +110,7 @@ public:
size_t
get_r
(
size_t
r
)
{
if
(
use_rmap
)
if
constexpr
(
use_rmap
)
{
constexpr
size_t
null
=
std
::
numeric_limits
<
size_t
>::
max
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment