Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dgl
Commits
8c6cead2
Unverified
Commit
8c6cead2
authored
Oct 07, 2019
by
Quan (Andy) Gan
Committed by
GitHub
Oct 07, 2019
Browse files
[Windows] Working around a mysterious VS2015 error (#905)
parent
e2b7f745
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/graph/heterograph.cc
src/graph/heterograph.cc
+5
-2
No files found.
src/graph/heterograph.cc
View file @
8c6cead2
...
@@ -362,8 +362,11 @@ DGL_REGISTER_GLOBAL("heterograph_index._CAPI_DGLHeteroGetFlattenedGraph")
...
@@ -362,8 +362,11 @@ DGL_REGISTER_GLOBAL("heterograph_index._CAPI_DGLHeteroGetFlattenedGraph")
HeteroGraphRef
hg
=
args
[
0
];
HeteroGraphRef
hg
=
args
[
0
];
List
<
Value
>
etypes
=
args
[
1
];
List
<
Value
>
etypes
=
args
[
1
];
std
::
vector
<
dgl_id_t
>
etypes_vec
;
std
::
vector
<
dgl_id_t
>
etypes_vec
;
for
(
Value
val
:
etypes
)
for
(
Value
val
:
etypes
)
{
etypes_vec
.
push_back
(
val
->
data
);
// (gq) have to decompose it into two statements because of a weird MSVC internal error
dgl_id_t
id
=
val
->
data
;
etypes_vec
.
push_back
(
id
);
}
*
rv
=
FlattenedHeteroGraphRef
(
hg
->
Flatten
(
etypes_vec
));
*
rv
=
FlattenedHeteroGraphRef
(
hg
->
Flatten
(
etypes_vec
));
});
});
...
...
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