Skip to content

Commit

Permalink
Remove pinning c++ version from get_stdopt (#203)
Browse files Browse the repository at this point in the history
  • Loading branch information
anutosh491 authored Jan 9, 2025
1 parent dc14222 commit 15297a3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/xinterpreter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ namespace xcpp
static std::string get_stdopt()
{
// We need to find what's the C++ version the interpreter runs with.
#ifndef EMSCRIPTEN
const char* code = R"(
int __get_cxx_version () {
#if __cplusplus > 202302L
Expand All @@ -100,9 +99,6 @@ __get_cxx_version ()
)";
auto cxx_version = Cpp::Evaluate(code);
return std::to_string(cxx_version);
#else
return "20";
#endif
}

interpreter::interpreter(int argc, const char* const* argv) :
Expand Down

0 comments on commit 15297a3

Please sign in to comment.