ngnrsaa / qflex

Flexible Quantum Circuit Simulator (qFlex) implements an efficient tensor network, CPU-based simulator of large quantum circuits.
Apache License 2.0
97 stars 24 forks source link

Fix string catch. #228

Closed s-mandra closed 4 years ago

s-mandra commented 4 years ago

catch (std::string) --> catch (const std::string&)

s-mandra commented 4 years ago

@alankao64, for future reference, try to catch by reference when possible, for instance:

catch (const std::string& err_msg)

instead of

catch (std::string err_msg)

Thanks!