Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
graph-tool
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
43
Issues
43
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tiago Peixoto
graph-tool
Commits
400a8d1e
Commit
400a8d1e
authored
Aug 03, 2009
by
Tiago Peixoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simple workaround for GCC 4.4.1
parent
8ab0947a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
src/graph/graph_selectors.cc
src/graph/graph_selectors.cc
+8
-7
No files found.
src/graph/graph_selectors.cc
View file @
400a8d1e
...
...
@@ -28,19 +28,20 @@ using namespace boost::lambda;
boost
::
any
graph_tool
::
degree_selector
(
GraphInterface
::
deg_t
deg
)
{
boost
::
any
sel
;
try
GraphInterface
::
degree_t
*
d
=
boost
::
get
<
GraphInterface
::
degree_t
>
(
&
deg
);
if
(
d
!=
0
)
{
mpl
::
for_each
<
selectors
>
(
bind
<
void
>
(
get_degree_selector
(),
_1
,
boost
::
get
<
GraphInterface
::
degree_t
>
(
deg
),
var
(
sel
)));
(
bind
<
void
>
(
get_degree_selector
(),
_1
,
*
d
,
var
(
sel
)));
}
catch
(
bad_get
)
else
{
boost
::
any
*
d
=
boost
::
get
<
boost
::
any
>
(
&
deg
);
bool
found
=
false
;
mpl
::
for_each
<
vertex_properties
>
(
bind
<
void
>
(
get_scalar_selector
(),
_1
,
boost
::
get
<
boost
::
any
>
(
deg
),
var
(
sel
),
var
(
found
)));
(
bind
<
void
>
(
get_scalar_selector
(),
_1
,
*
d
,
var
(
sel
),
var
(
found
)));
if
(
!
found
)
throw
GraphException
(
"invalid degree selector"
);
}
...
...
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