Relative Content

Tag Archive for c++c++11

In C language, do multiple implicit conversions that occur in an expression have a certain order?

(My question might be quite long. I would be very grateful if you could read it through.)
I am learning C language by reading the C11 standard. I find that there are quite a lot of implicit conversions in C language. This has triggered my thinking. I will list some of the implicit conversions mentioned in C11 below, as well as my understanding of them and some questions I have about them:
First is the lvalue conversion:
6.3.2.1 p2:

C++ Promise already satisfied

I’m trying to test promise<T> / future<T> in C++ because I’d like to use them as a way to signal asyncrounously to another thread the completion of an OpenCL’s cl_event via an OpenCL callback.

how often do you use the noexcept or constexpr modifier

how often do you use the noexcept or constexpr modifier in real work? Scott Myers wrote a lot about the importance of these structures, but why in practice I rarely saw this with my colleagues, share your experience, how important and relevant this is

why std::move(std::vector) does move

Im really confused cause of c++ having so many “unspecified states”. In the code below Im trying to move std::vector to a set(&&) function but output seems like its not moved.