Skip to content

Commit

Permalink
Fix for template issue to fix build error on macOS with clang
Browse files Browse the repository at this point in the history
Signed-off-by: Niall Moran <niall.moran@ichec.ie>
  • Loading branch information
nmoran committed Jul 5, 2019
1 parent 8e6f5d5 commit 01265bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions quantum/gate/utils/JsonVisitor.cpp
Expand Up @@ -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());
Expand Down

0 comments on commit 01265bd

Please sign in to comment.