Concepts and sfinae are conspiring against me pls help 😭
Concepts and sfinae are conspiring against me pls help 😭
C++Now 2025 SESSION ANNOUNCEMENT: A View for Any Occasion by Patrick Roberts
https://schedule.cppnow.org/session/2025/a-view-for-any-occasion/
Register now at https://cppnow.org/registration/
C++Now 2025 SESSION ANNOUNCEMENT: A View for Any Occasion by Patrick Roberts
https://schedule.cppnow.org/session/2025/a-view-for-any-occasion/
Register now at https://cppnow.org/registration/
The latest feature for #FormaK: a managed #KalmanFilter runtime!
I'd been stuck trying to simplify the complexity of managing a process and multiple sensor models since I introduced calibration (which added more complexity... not helping...). In the end I landed on a single tick function call with a dose of #SFINAE that handles sensors of any type and takes care of the rest under the hood.
New feature launch for #FormaK: a managed #KalmanFilter runtime!
I'd been stuck trying to simplify the complexity of managing a process and multiple sensor models since I introduced calibration (which added more complexity... not helping...). In the end I landed on a single tick function call with a dose of #SFINAE that handles sensors of any type and takes care of the rest under the hood.
As always, it comes in #Python and #Cpp
Blog: https://buckbaskin.com/blog/formak-runtime-new-formak-feature.html
Github: https://github.com/buckbaskin/formak/pull/17
False! In some situation, using deduced return type will cause the compiler to instanciate the body of the function, and in my case it was happening a lot with concepts since I checked everything.
Suddently, I had a bunch of instanciated functions that shouldn't have, and try to called (purposefully) unimplemented functions. Those were causing compilation errors where it shouldn't
😓:
“How C++ Resolves A Function-Call”, Jeff Preshing (https://preshing.com/20210315/how-cpp-resolves-a-function-call).
On HN: https://news.ycombinator.com/item?id=26471883
#CPlusPlus #CPP #PLDI #Compiler #Programming #NameResolution #SFINAE #ADL #Overloading