comparison Framework/Toolbox/LinearAlgebra.cpp @ 1175:b1c5da789904 broker

notes
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 20 Nov 2019 13:28:18 +0100
parents 1644de437a7b
children 0ca50d275b9a
comparison
equal deleted inserted replaced
1172:6def5bfba867 1175:b1c5da789904
123 { 123 {
124 return false; 124 return false;
125 } 125 }
126 126
127 #elif 1 127 #elif 1
128 /**
129 * Use of our homemade implementation of
130 * "boost::lexical_cast<double>()". It is much faster than boost.
131 **/
128 if (!GenericToolbox::StringToDouble(target[i], items[i].c_str())) 132 if (!GenericToolbox::StringToDouble(target[i], items[i].c_str()))
129 { 133 {
130 return false; 134 return false;
131 } 135 }
132 136
133 #else 137 #else
134 /** 138 /**
135 * Fallback implementation using Boost (slower, but somewhat 139 * Fallback implementation using Boost (slower, but somehow
136 * independent to locale). 140 * independent to locale contrarily to "std::stod()", and
141 * generic as it does not use our custom implementation).
137 **/ 142 **/
138 try 143 try
139 { 144 {
140 target[i] = boost::lexical_cast<double>(items[i]); 145 target[i] = boost::lexical_cast<double>(items[i]);
141 } 146 }