[Solved] How to specify type of a constexpr function returning a class (without resorting to auto keyword)

The actual type is hidden as it’s local inside the function, so you can’t explicitly use it. You should however be able to use decltype as in decltype(create<int>()) v = create<int>(); I fail to see a reason to do like this though, when auto works. 1 solved How to specify type of a constexpr function … Read more