Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »

Welcome to Software Development on Codidact!

Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.

Activity for hamsasimon‭

Type On... Excerpt Status Date
Edit Post #280128 Post edited:
Typo in title.
over 3 years ago
Edit Post #280128 Initial revision over 3 years ago
Question Confusion about using std::async with class member function
So,I'm having a doubt when I call `std:async()` on a member function of a class. The book I'm reading says (emphasis mine) > You can also pass a pointer to a member function to async(). In that case, the first argument after the member function has to be a reference or a pointer to the object for w...
(more)
over 3 years ago
Edit Post #280048 Post edited:
Clearer wording
over 3 years ago
Edit Post #280048 Post edited:
Added more code for context.
over 3 years ago
Edit Post #280048 Post edited:
over 3 years ago
Edit Post #280048 Initial revision over 3 years ago
Question When should I use wait() instead of get() when using C++ threads
I'm trying to understand the purpose of the `wait()` function in Class future<> for C++. At the moment I don't see any purpose for calling `wait()` instead of `get()`. What I have tried in code: int main() { std::futureresult1(std::async(std::launch::deferred,func1)); ...
(more)
over 3 years ago