Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
ORNL Quantum Computing Institute
xacc
Commits
534a8a94
Unverified
Commit
534a8a94
authored
Jul 08, 2019
by
Mccaskey, Alex
Committed by
GitHub
Jul 08, 2019
Browse files
Merge pull request #113 from nmoran/template-cast-fix
Fix for template issue to fix build error on macOS with clang
parents
8e6f5d59
01265bd8
Changes
1
Hide whitespace changes
Inline
Side-by-side
quantum/gate/utils/JsonVisitor.cpp
View file @
534a8a94
...
...
@@ -81,13 +81,13 @@ template <class W, class B> std::string JsonVisitor<W, B>::write() {
auto
p
=
kv
.
second
;
switch
(
p
.
which
())
{
case
0
:
writer
->
Int
(
p
.
as
<
int
>
());
writer
->
Int
(
p
.
template
as
<
int
>());
break
;
case
1
:
writer
->
Double
(
p
.
as
<
double
>
());
writer
->
Double
(
p
.
template
as
<
double
>());
break
;
case
2
:
writer
->
String
(
p
.
as
<
std
::
string
>
());
writer
->
String
(
p
.
template
as
<
std
::
string
>());
break
;
default:
writer
->
String
(
p
.
toString
());
...
...
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