Using 'auto' type deduction - how to find out what type the compiler deduced?

前端 未结 11 1106
伪装坚强ぢ
伪装坚强ぢ 2021-01-30 07:54

How can I find out what type the compiler deduced when using the auto keyword?

Example 1: Simpler

auto tickTime = 0.001;

W

11条回答
  •  广开言路
    2021-01-30 08:50

    As Daniel Jour said, read the error message:

    ... _Tp = std::chrono::time_point<
               std::chrono::_V2::system_clock,
               std::chrono::duration<
                 double, std::ratio<1l, 1000000000l> > > ...
    

提交回复
热议问题