diff --git a/multipers/multiparameter_module_approximation/approximation.h b/multipers/multiparameter_module_approximation/approximation.h index 4b4f86a..f8d4d77 100644 --- a/multipers/multiparameter_module_approximation/approximation.h +++ b/multipers/multiparameter_module_approximation/approximation.h @@ -27,6 +27,7 @@ #include #include #include +#include #include #include @@ -689,8 +690,8 @@ template inline void Module::add_barcode(const Barcode &barcode) { const bool verbose = false; if (barcode.size() != module_.size()) { - std::cerr << "Barcode sizes doesn't match. Module is " << module_.size() << " and barcode is " << barcode.size() - << std::endl; + std::cerr << "Barcode sizes doesn't match. Module is " << std::to_string(module_.size()) << " and barcode is " + << std::to_string(barcode.size()) << std::endl; } unsigned int count = 0; for (const auto &bar_ : barcode) { @@ -708,7 +709,8 @@ inline void Module::add_barcode( const std::vector>> &barcode, const bool threshold_in) { assert(barcode.size() != module_.size() && - ("Barcode sizes doesn't match. Module is " + module_.size() + " and barcode is " + barcode.size())); + ("Barcode sizes doesn't match. Module is " + std::to_string(module_.size()) + " and barcode is " + + std::to_string(barcode.size()))); auto count = 0U; for (const auto &extBar : barcode) { @@ -722,7 +724,8 @@ inline void Module::add_barcode(const Line &line, const std::vector> &barcode, const bool threshold_in) { assert(barcode.size() != module_.size() && - ("Barcode sizes doesn't match. Module is " + module_.size() + " and barcode is " + barcode.size())); + ("Barcode sizes doesn't match. Module is " + std::to_string(module_.size()) + " and barcode is " + + std::to_string(barcode.size()))); auto count = 0U; for (const auto &bar : barcode) {