tfel icon indicating copy to clipboard operation
tfel copied to clipboard

[tfel-math] Add better support class template argument deduction (CTAD)

Open thelfer opened this issue 2 years ago • 0 comments

C++-17 introduces class template argument deduction CTAD, which was never supported in tfel.

Basically, the following code shall work:

stensor a = {1, 2, 3}; // a is an stensor<1u, int>
tensor b = {1, 2, 3 , 4 , 5} // b is a tensor<2u, int>

thelfer avatar Feb 02 '24 07:02 thelfer