Skip to main content

Questions tagged [c++11]

C++11 is the name of the C++ standard, approved in 2011. It replaces the previous C++03 standard, adding various core language changes and fixes, and an improved and expanded standard library.

2 votes
3 answers
296 views

According to Why define a Java object using interface (e.g. Map) rather than implementation (HashMap), I know I should declare most abstract type when possible, for example, suppose I'm using an UI ...
wcminipgasker2023's user avatar
0 votes
1 answer
845 views

I use code like this and it seems to work fine: void addActions(const vector<zero_arity_function>& _actions) { actionsMutex.lock(); for (auto entry : _actions) { ...
stands2reason's user avatar
1 vote
2 answers
260 views

I would like to use std::chrono::time_point in some simulation software I am writing. I would like to take advantage of features like the time point arithmetic functions. However, I run into a snag. ...
Cort Ammon's user avatar
  • 12.1k
0 votes
2 answers
391 views

Does modular design decrease compilation time in cpp? My professor said so, but I don't understand how, because the build and compilation time depend on the amount of code, right? Also, wouldn't ...
happy's user avatar
  • 11
1 vote
2 answers
1k views

First of all, I hope this question doesn't fall under "Asking For Books Recommendation" Category. Since TC++PL covers C++11, it is 3 revisions old (C++14, C++17, C++20), the ISO group is ...
theasker's user avatar
1 vote
1 answer
2k views

Effective Modern C++ recommends using void futures as a way to communicate one-off events from one thread to another. Below is a minimal reproduction of that practice. std::promise<void> promise;...
msmoiz's user avatar
  • 21
0 votes
1 answer
71 views

Thanks for reading my question. I have a class which reads a configuration and based on the configuration, populates a data structure by reading from a database, which is ultimately presented to a ...
Sampath's user avatar
  • 119
0 votes
0 answers
96 views

I want to make a httpClient wrapper that is able to use a predefined set of authentification methods: basic, digest, token (oauth), ntlm just to name a few that I will have to implement. My approach ...
niraami's user avatar
  • 109
2 votes
3 answers
929 views

I have a tree-like structure as shown in below picture (as one small example). The tree consists of two different node types, that are: Data Nodes: These nodes that are colored in yellow contain about ...
TonySalimi's user avatar
1 vote
2 answers
360 views

I would like to run tasks in parallel. At this time, I am using a very simple worker pool using a single concurrent queue shared by all the threads. Every task has a non unique "tag" (an integer in ...
Willie Taylor's user avatar
2 votes
1 answer
315 views

Why did c++11 add a separate find_if() instead of simply overloading the existing find()? Wouldn't overloading the function be sufficient?
Jankovsky144's user avatar
4 votes
1 answer
138 views

I am currently working on a problem that has a central controller that is handling inputs and outputs between various modules and maintaining a number of entity classes as these change. When working ...
zachsmthsn's user avatar
2 votes
2 answers
340 views

Our main product is written in C++ MFC and follows the same code standard as MFC. Now we will start to develop new components, and think about whether we should continue to use the same outdated ...
magol's user avatar
  • 201
2 votes
0 answers
2k views

i've been wondering about it for a while now but never found any answers. is it possible to use something like a condition variable without a lock? I have a vector of objects, and a thread pool, and ...
Alon Hershkovitz's user avatar
0 votes
1 answer
245 views

The Problem I would like to create a managing "overseer" class that connects several related object groups together where any particular group is able to be easily swapped for another using ...
Alex's user avatar
  • 9

15 30 50 per page
1
2 3 4 5
12