Skip to content

Commit

Permalink
fix: missing to_string stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLapous committed Sep 23, 2024
1 parent 28c25ad commit 6e66bf7
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions multipers/multiparameter_module_approximation/approximation.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
#include <iterator>
#include <limits>
#include <oneapi/tbb/parallel_for.h>
#include <string>
#include <utility>
#include <vector>

Expand Down Expand Up @@ -689,8 +690,8 @@ template <class Barcode>
inline void Module<value_type>::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) {
Expand All @@ -708,7 +709,8 @@ inline void Module<value_type>::add_barcode(
const std::vector<std::pair<int, std::pair<value_type, value_type>>> &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) {
Expand All @@ -722,7 +724,8 @@ inline void Module<value_type>::add_barcode(const Line<value_type> &line,
const std::vector<std::pair<value_type, value_type>> &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) {
Expand Down

0 comments on commit 6e66bf7

Please sign in to comment.