From 3fd0bf50f8e9df7046781630302792f5c6bd9cf1 Mon Sep 17 00:00:00 2001 From: Hiroshi Shinaoka Date: Tue, 7 Jun 2016 06:19:10 +0800 Subject: [PATCH] Fixed a silly compilation error --- src/impurity.ipp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/impurity.ipp b/src/impurity.ipp index e1f545c..e428d73 100755 --- a/src/impurity.ipp +++ b/src/impurity.ipp @@ -668,7 +668,7 @@ void HybridizationSimulation::sanity_check() const { // compute trace EXTENDED_SCALAR trace_sw = sliding_window.compute_trace(operators_new); - if (myabs(static_cast(trace_sw/trace).template convert_to()-1.0)>1E-5) { + if (myabs(convert_to_scalar(static_cast(trace_sw/trace))-1.0)>1E-5) { throw std::runtime_error("trace != trace_new"); } @@ -677,7 +677,7 @@ void HybridizationSimulation::sanity_check() const { //} SCALAR sign_overall_new = dsign(sign_new) - *dsign(trace).template convert_to() + *convert_to_scalar(dsign(trace)) *sign_det; //std::cout << "debug det "<< det << " " << det_new << std::endl; //std::cout << "debug sign "<< sign_overall_new << " " << sign << std::endl;