Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Tiago Peixoto
graph-tool
Commits
1e051953
Commit
1e051953
authored
Oct 26, 2015
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation error in action_wrap
parent
051c267f
Pipeline
#63
passed with stage
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
9 deletions
+27
-9
src/graph/graph_filtering.hh
src/graph/graph_filtering.hh
+27
-9
No files found.
src/graph/graph_filtering.hh
View file @
1e051953
...
...
@@ -377,27 +377,43 @@ struct action_wrap
:
_a
(
a
),
_g
(
g
),
_max_v
(
max_v
),
_max_e
(
max_e
)
{}
template
<
class
Type
>
auto
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>
a
,
boost
::
mpl
::
false_
)
const
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>&
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>&
a
,
boost
::
mpl
::
true_
)
const
{
return
a
;
}
template
<
class
Type
>
boost
::
unchecked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
vertex_index_map_t
>
a
,
boost
::
mpl
::
false_
)
const
{
return
a
.
get_unchecked
(
_max_v
);
}
template
<
class
Type
>
auto
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
edge_index_map_t
>
a
,
boost
::
mpl
::
false_
)
const
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
edge_index_map_t
>&
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
edge_index_map_t
>&
a
,
boost
::
mpl
::
true_
)
const
{
return
a
;
}
template
<
class
Type
>
boost
::
unchecked_vector_property_map
<
Type
,
GraphInterface
::
edge_index_map_t
>
uncheck
(
boost
::
checked_vector_property_map
<
Type
,
GraphInterface
::
edge_index_map_t
>
a
,
boost
::
mpl
::
false_
)
const
{
return
a
.
get_unchecked
(
_max_e
);
}
template
<
class
Type
>
auto
scalarS
<
typename
Type
::
unchecked_t
>
uncheck
(
scalarS
<
Type
>
a
,
boost
::
mpl
::
false_
)
const
{
return
scalarS
<
typename
Type
::
unchecked_t
>
(
uncheck
(
a
.
_pmap
,
boost
::
mpl
::
false_
()));
return
scalarS
<
typename
Type
::
unchecked_t
>
(
uncheck
(
a
.
_pmap
,
boost
::
mpl
::
false_
()));
}
//no op
...
...
@@ -405,6 +421,8 @@ struct action_wrap
Type
&
uncheck
(
Type
&
a
,
DoWrap
)
const
{
return
a
;
}
void
operator
()()
const
{};
template
<
class
T1
>
void
operator
()(
T1
*
a1
)
const
{
_a
(
*
a1
);
}
template
<
class
T1
,
class
...
Ts
>
void
operator
()(
T1
*
a1
,
Ts
&&
...
as
)
const
...
...
Write
Preview
Markdown
is supported
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