Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bad_any_cast in Binding.cpp, after the changes for GCC... #540

Closed
1 task done
xparq opened this issue Feb 4, 2024 · 1 comment
Closed
1 task done

bad_any_cast in Binding.cpp, after the changes for GCC... #540

xparq opened this issue Feb 4, 2024 · 1 comment

Comments

@xparq
Copy link
Owner

xparq commented Feb 4, 2024

(Follow-up of #195: GCC build)

  • Is any of the values missing from the HUDs?
    • Hehh, indeed, most values are missing (except from the Obj. HUD)! :)
	} catch(std::bad_any_cast&) {
//!! This happens with GCC, but not with MSVC:
//!!cerr << "- Binding ERROR: Type mismatch for a binding with saved type \"" <<type_name<< "\" ["<<Binding::string_fn_ptr_name<<"]!\n";
		// Nothing added to 'out', continuing...
	} catch(...) {
@xparq
Copy link
Owner Author

xparq commented Feb 4, 2024

Wow, suddenly started happening with MSVC, too! :-o

Binding ERROR: Type mismatch for a binding with saved type "float" [string_fn_ptr]!

Now that kinda suggests that changes in Binding to let it compile with GCC (-> commits related to #195!) have caused this.

@xparq xparq changed the title Investigate the bad_any_cast case (in Binding.cpp) only happening with GCC bad_any_cast in Binding.cpp, after the changes for GCC... Feb 5, 2024
@xparq xparq pinned this issue Feb 5, 2024
@xparq xparq closed this as completed in c28c373 Feb 19, 2024
@xparq xparq unpinned this issue Feb 19, 2024
xparq added a commit that referenced this issue Feb 19, 2024
Last critical adjustments to work OK with GCC too.

+ Someaht more flexible run scripts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant