Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 3530

Questions about C++, a statically typed, free-form, multi-paradigm, compiled, general-purpose programming language.

8
votes
C++ is a very complicated language, and due to many factors the compiler needs several passes to determine what a certain symbol is. The result is that C++ programs are slower to compile than programs …
answered Feb 13 '12 by Tamás Szelei
56
votes
7answers
It seems to me that many bigger C++ libraries end up creating their own string type. In the client code you either have to use the one from the library (QString, CString, fbstring etc., I'm sure anyon …
asked Jun 5 '12 by Tamás Szelei
5
votes
I think there is one advantage of using a #define that you didn't mention, and that is the fact that you can set the value on the command line (thus, set it from your one-step build script). Other t …
answered Nov 24 '11 by Tamás Szelei
4
votes
The C++ standard doesn't respect system exceptions because it was designed to be usable on a wide range of platforms (much wider that PC-based platforms). It would be impossible to provide some sort o …
answered Dec 7 '11 by Tamás Szelei
4
votes
You can try a signals-slots library: sigslot libsigc++ Boost.Signals2 (this is the thread-safe version of Boost.Signals) If you don't yet have a preference for a GUI library, you can also try Qt. …
answered Mar 9 '12 by Tamás Szelei
6
votes
WTL uses the CRTP. Chromium browser is a well known example of software that uses WTL, so I'd say it's used "in the wild". About the 90%? That's definitely an overstatement. Have you ever used a cont …
answered Dec 8 '11 by Tamás Szelei
56
votes
I'm one of those people who write C++ GUI apps (mostly for windows). With Qt, to be precise. My reasons: I like C++. I'm a freelancer and usually I can choose my tools (lucky me!) In a managed envir …
answered May 31 '11 by Tamás Szelei
1
vote
This is anti-OO, but entity-component-system design is expressly not object oriented. I do not think that this is a bad practice in general for software that is based on CES, but in your example it is …
answered Aug 17 '14 by Tamás Szelei
15
votes
By far, the biggest problem with macros is that they are not scoped. That alone warrants the use of typedef. Also, it is more clear semantically. When someone who reads your code sees a define, he won …
answered Jan 18 '12 by Tamás Szelei
0
votes
Find is meant to operate on any generic STL container, some of which are expensive to sort. There are faster ways to find an item with the right data structure, such as with std::set, and that class h …
answered Feb 9 '14 by Tamás Szelei