We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c34dd80 commit 24c0d69Copy full SHA for 24c0d69
src/tesseract.pybind.h
@@ -253,7 +253,10 @@ void add_tesseract_module(py::module& root) {
253
msg << "Syndrome array size (" << syndrome.size()
254
<< ") does not match the number of detectors in the decoder ("
255
<< self.num_detectors << ").";
256
- throw std::invalid_argument(msg.str());
+ std::string msg = "Syndrome array size (" + std:to_string(syndrome.size())
257
+ + ") does not match the number of detectors in the decoder ("
258
+ + std::to_string(self.num_detectors) + ")."
259
+ throw std::invalid_argument(msg);
260
}
261
262
std::vector<uint64_t> detections;
0 commit comments