Skip to content

Commit

Permalink
Fix call() template deduction for OSX
Browse files Browse the repository at this point in the history
  • Loading branch information
guruofquality committed Aug 23, 2020
1 parent 31db320 commit 42fbce1
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions Changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
This this the changelog file for the Pothos Python toolkit.

Release 0.4.2 (pending)
==========================

- Fix call() template deduction for OSX

Release 0.4.1 (2020-07-19)
==========================

Expand Down
8 changes: 4 additions & 4 deletions PythonInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ static std::string __getPythonInfoJSON()
auto& versionInfo = pythonInfo["Version Info"];

auto sysVersionInfo = sys.get("version_info");
versionInfo["Major"] = sysVersionInfo.call<int>("__getitem__", 0);
versionInfo["Minor"] = sysVersionInfo.call<int>("__getitem__", 1);
versionInfo["Patch"] = sysVersionInfo.call<int>("__getitem__", 2);
versionInfo["Major"] = sysVersionInfo.call<int, int>("__getitem__", 0);
versionInfo["Minor"] = sysVersionInfo.call<int, int>("__getitem__", 1);
versionInfo["Patch"] = sysVersionInfo.call<int, int>("__getitem__", 2);
versionInfo["Release Level"] = sysVersionInfo.call<std::string>("__getitem__", 3);
versionInfo["Serial"] = sysVersionInfo.call<int>("__getitem__", 4);
versionInfo["Serial"] = sysVersionInfo.call<int, int>("__getitem__", 4);

auto fullVersionString = sys.get<std::string>("version");
versionInfo["Version String"] = fullVersionString.substr(0, fullVersionString.find(" "));
Expand Down

0 comments on commit 42fbce1

Please sign in to comment.