Notes from C++ static analysis

Walter Bright newshound2 at digitalmars.com
Wed Jun 26 16:01:13 PDT 2013


On 6/26/2013 3:56 PM, Walter Bright wrote:
> On 6/26/2013 2:47 PM, Paulo Pinto wrote:
>> I have been an adept of iostreams since day one and never understood why people
>> complain so much about them or the operator<< and operator>>
>> for that matter.
>
> Even if you can get past the execrable look of it, it suffers from at least 3
> terrible technical problems:
>
> 1. not thread safe
>
> 2. not exception safe
>
> 3. having to acquire/release mutexes for every << operation rather than once for
> the whole expression


Oh, and the cake topper is IOStreams performs badly, too.


More information about the Digitalmars-d mailing list