Patrick

Antwerp, Belgium

none

Age: 50

Die-hard developer.
Not afraid to go low-level (even down to assembly when needed during debugging).
Prefers readable code over short, complex, 'would-be-smart', unreadable code.
Musical preferences: EBM (Front 242), Synthpop (Human League, Heaven 17), Electronic stuff (Kraftwerk) and most things that don't fit mainstream (Severed Heads, Isao Tomita).
Likes 80's pinballs (Comet, High Speed)

14h
answered How to pass an object's address on the heap from a function using a pointer
Aug
26
awarded Yearling
Aug
26
awarded Yearling
Aug
14
awarded Nice Answer
Jul
31
awarded Popular Question
Jul
28
asked How to prevent use of variable after its value has been moved to another variable?
Jul
22
comment When is the compiler allowed to optimize auto+brace style initialization?
@CoryKramer: Visual Studio 2015 now correctly handles the =default move constructors. Hooray.
Jul
22
comment When is the compiler allowed to optimize auto+brace style initialization?
Visual Studio 2015 is indeed giving an error on this (Product::Product(Product &&)': attempting to reference a deleted function). So it was clearly a bug in Visual Studio 2013.
Jul
22
comment When is the compiler allowed to optimize auto+brace style initialization?
Just checked Visual Studio 2015: here an error is given (which is correct): error C2280: 'Product::Product(Product &&)': attempting to reference a deleted function
Jul
21
answered C++: How to find out "unused" classes starting from known "point"
Jul
10
asked How to find the Skype for Business command line options?
Jul
1
accepted When is the compiler allowed to optimize auto+brace style initialization?
Jun
28
comment When is the compiler allowed to optimize auto+brace style initialization?
This is not correct. According to the standard the compiler must first construct a temporary, then move-construct it into the variable. But the compiler is allowed to optimize this (constructing the variable directly), provided the logical effect would be the same as construction+moveconstruction, which is not the case if the moveconstructor is deleted.
Jun
27
comment When is the compiler allowed to optimize auto+brace style initialization?
Then why does it fail when the move- and copy-constructor are deleted AND private?
Jun
26
comment When is the compiler allowed to optimize auto+brace style initialization?
@CoryKramer. It's not about the default-compiler-generated move constructor. It's about when I explicitly delete the move-constructor, the code still compiles. And I think this is not allowed by the standard.
Jun
26
comment When is the compiler allowed to optimize auto+brace style initialization?
Compiler version 18.00.30723. Could this bug be introduced between 21005 and 30723?
Jun
26
asked When is the compiler allowed to optimize auto+brace style initialization?
Jun
26
awarded Notable Question
Jun
8
awarded Nice Question
May
11
comment Writing the same file 15 times per second fails sometimes after 50 writes. How to solve?
Harry, thanks. If indeed a virus scanner is involved, the virus scanner might still have the file open. Thanks.
1 2 3 4 5