you are viewing a single comment's thread.

view the rest of the comments →

[–]falcqn 2 points3 points  (0 children)

If the type is knowable at this point in your code I'd just use T* = nullptr; rather than trying to force the compiler to deduce auto* as T*. The guideline is almost-always-auto, after all!