~/talk

Advancing cppfront with Modern C++: Refining the Implementation of is, as, and UFCS

speakerdeck:filipsajdak
slides:none on file

Implements 'is', 'as', and UFCS in cppfront using Modern C++ with concrete compiler constraints (GCC 10, Clang 12/13/14, MSVC), builds overloaded functions plus special-case handlers for variant/optional/any, and ships workarounds for generic lambdas and implicit casts. Uses concept subsumption rules heavily, debugs with Compiler Explorer, and avoids static_assert inside requires by returning std::true_type/std::false_type or std::nullopt. Result: functioning pull request with working UFCS macros and some compiler-dependent hacks and fallbacks.

AI-written summary · about

  1. 0:00Advancing cppfront with Modern C++
  2. 1:05Contributing to cppfront
  3. 3:18is operator implementation
  4. 6:08C++20 concepts and subsumption
  5. 12:58Implementing is for types
  6. 20:37Refining is with concepts
  7. 27:28Handling emptiness in is
  8. 30:20Passing concepts to functions
  9. 36:32Type find if for variants
  10. 43:41as operator use cases
  11. 47:30Identity function in as
  12. 51:49Perfect forwarding in as
  13. 55:43Takeaways from is and as
  14. 56:46Exploring UFCS
  15. 1:00:19Q&A on cppfront
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.