For the article describing the removal of the void specialization for std :: future and std :: prom P0241R0 . It may be a dumb question, but the proposed solution is to completely remove the void specialization, but then what did people expect to do when they want to instantiate an object std::future<void>?
std::future<void>
As noted in the link, this is possible if it voidwas a regular type .
void
void get_value() { void x; return x; }
, . "", . ( "", , , , . "null", .)
std:: future - , . , .
Source: https://habr.com/ru/post/1017401/More articles:Extract edge and communities from a list of nodes - pythoniOS - How to debug Safari ContentBlocker extension? - debuggingsimple retention calculation in R - rBitbucket piping: there are no precedents in the NDK toolkit for ABI: aarch64-linux-android - androidApollo GraphQl responds. How to clear request cache for all combinations of variables? - cachingКак подавить InMemoryEventId.TransactionIgnoredWarning при модульном тестировании с помощью базы данных в памяти с транзакциями? - c#Can I use arrow functions in classes with ES6? - javascriptJava8 Stream - HashSet байта из IntStream - javaHow to split text to combine double quotes plus trailing text to a point? - phpEnzyme: when to use small ones, rendering or mounting? - reactjsAll Articles