C++ syntax: Difference between revisions

Content deleted Content added
Reflection: example from the proposal paper
Line 669:
Creating an annotation to generate a specialisation for <code>std::formatter<T></code> is as follows:
<syntaxhighlight lang="cpp">
template <auto V>
struct Derived { };
 
template <auto V> inline constexpr Derived<V> Derive;
template <auto V>
template <auto V> inline constexpr Derived<V> Derive;
 
inline constexpr struct {} Debug;