Skip to content

Commit 2127fc6

Browse files
committed
using names instead of typeid
1 parent 903b142 commit 2127fc6

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

examples/mandelbrot.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
#include <iostream>
1717
#include <string>
1818
#include <vector>
19-
#include <typeinfo> // operator typeid
2019

2120
#include "pico_bench.hpp"
2221

@@ -251,8 +250,8 @@ void run_arch(
251250

252251
const float scalar_min = stats.min().count();
253252

254-
std::cout << '\n' << typeid(arch).name() <<" "<< stats << '\n';
255-
auto filename = std::string("mandelbrot_") + std::string(typeid(arch).name()) + std::string(".ppm");
253+
std::cout << '\n' << arch::name() <<" "<< stats << '\n';
254+
auto filename = std::string("mandelbrot_") + std::string(arch::name()) + std::string(".ppm");
256255
writePPM(filename.c_str(), width, height, buffer.data());
257256

258257
}

0 commit comments

Comments
 (0)