C ++ 11 implies implicit conversions allowed with std :: tie?
The following code compiles and runs, but I'm not sure what happens behind the scenes or if it is safe.
std::tuple<float,float> foo() { return std::make_tuple(0,0); } double a, b; std::tie(a,b) = foo();
c ++ c ++ 11 tuples stdtuple
lenguador
source share