T
T
Timur2017-03-28 18:42:41
IDE
Timur, 2017-03-28 18:42:41

Why doesn't the IDE display information about some types?

IDE Code::Blocks does not display information about the internal structure of some C++ types, for example, such as I std::chrono::time_point.
looked that in the header this type is declared as

<template<typename _Clock, typename _Dur = typename _Clock::duration>  struct time_point;

Apparently, there is too little information to display hints. But why then do std::chrono::durationhints appear about such a type?
I want to know why there are no hints and how can I see the internal structure of this type std::chrono::time_point
without resorting to sites like cplusplus.com?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Ariox41, 2017-03-28
Saifulmulukov @TiersWar

C++11 added some syntactical changes, as a result of which all IDEs misinterpreted some constructs for a while. At the moment, the situation has improved, but not everywhere. I recommend paying attention to IDEs that use the clang code model. I tested only QtCreator, there are some problems with this, but it can work. And our own code model without clang works well in the latest versions.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question