Subscribe to:
Post Comments (Atom)
About
Follow Us
Popular Posts
-
pointer cause decay, references do not. Decay means loss of type information. In C and C++, an array name 'decays' to pointer to t...
-
An interesting consequence of decay related rules of pointers and references is that seemingly correct C++ code fails to compile. We hav...
-
Conventionally, std::cin, std::cout are buffererd and std::cerr is not buffered. Unbuffered streams are written to device immediately. In ge...
-
A "thunk" appears to be an overloaded term in computer science. Use of the word "thunk" goes back to Algol 60 implementa...
-
In C++, default arguments of global scope functions can be changed easily. Typically we use a constant expression as a default argument. C...
-
This time lets take a brief look at some nifty C++ idioms in the Boost peer-reviewed libraries. We will talk about Boost Base-from-Member i...
-
Reading entire file in one go. Solution 1: std::ifstream in("circle.cc"); std::istreambuf_iterator < char > begin(in), e...
-
Some syntax clarification: This is a short syntax tutorial for upcoming posts. int *p; // a pointer to an integer int &p; // a refer...
-
It is a C++ idiom in which inheritance and template type parameters are cleverly integrated to generate flexible types at compile-time. In C...
-
In one of my previous posts I described a few ways of swapping two numbers using xor operation in a sinlge line. The discussion is not corr...
