Tags » Advanced C#

A conditional copy constructor

In this post we will try to define a ‘wrapper’ class template that does or does not have a copy constructor depending on whether the wrapped class has it. 2,633 more words


Clever overloading

This post is intended to be a light introduction to certain C++ guru tricks. I want to introduce a couple of concepts that typically put normal people off. 2,764 more words


Tuple - dobro czy zło?

Tuple. Dobro czy zło? Subiektywizm każe mi powiedzieć, że straszne zło. Obiektywizm – zło umiarkowane/neutralność.

Zamysłem przy tworzeniu Tuple było ułatwienie zagnieżdżania struktur. Na papierze wygląda nieźle, natomiast jest bardzo  nadużywane w projektach, co czyni je nieczytelnymi. 269 more words

Maciej Jędrzejewski

Too perfect forwarding

Update. One of the readers informed me that the same problem has been already described by R. Martinho Fernandes (see here), Eric Niebler ( 1,813 more words


Design Patterns - Facade

Facade is one of design patterns which are used most frequently. To explain what it is and how to use it, we can compare it to a black box. 520 more words


Tagged initialisation of structures in C

Aggregate initializers (initializers in {}) in the specifications according to C89/90,required the programmer to supply an individual initializer for each structure member in order, beginning with the first. 221 more words


Magical container_of() Macro

When you begin with the kernel, and you start to look around and read the code, you will eventually come across this magical preprocessor construct. What does it do? 676 more words