Skip to content
GitLab
Menu
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
0f2d575e
Commit
0f2d575e
authored
Feb 07, 2016
by
Tiago Peixoto
Browse files
Cosmetic change to checked_vector_property_map
parent
b50b31da
Pipeline
#109
failed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/graph/fast_vector_property_map.hh
View file @
0f2d575e
...
...
@@ -132,8 +132,8 @@ public:
// CONSIDER: not sure that assignment to 'index' is correct.
reference
operator
[](
const
key_type
&
v
)
const
{
typename
property_traits
<
IndexMap
>::
value_type
i
=
get
(
index
,
v
);
if
(
static_cast
<
unsigned
>
(
i
)
>=
store
->
size
())
{
auto
i
=
get
(
index
,
v
);
if
(
static_cast
<
size_t
>
(
i
)
>=
store
->
size
())
{
store
->
resize
(
i
+
1
,
T
());
}
return
(
*
store
)[
i
];
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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