We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 734e487 commit 2a4eec4Copy full SHA for 2a4eec4
source/matplot/util/common.cpp
@@ -51,7 +51,7 @@ namespace matplot {
51
}
52
53
std::string run_and_get_output(const std::string &cmd) {
54
- std::unique_ptr<FILE, decltype(&PCLOSE)> pipe(POPEN(cmd.c_str(), "r"),
+ std::unique_ptr<FILE, int (*)(FILE *)> pipe(POPEN(cmd.c_str(), "r"),
55
PCLOSE);
56
if (!pipe) {
57
throw std::runtime_error("popen() failed!");
0 commit comments