
8 Nov
2011
8 Nov
'11
7:26 p.m.
On Tuesday, November 08, 2011 21:16:51 Peter Dimov wrote:
Andrey Semashev wrote:
On Tuesday, November 08, 2011 13:19:22 Peter Dimov wrote:
"Doesn't support multi-module applications" is not the same as not supporting sharing an atomic between DLLs. Many multi-module applications will never need to do that. I can't think of an example that isn't either contrived or a bad idea.
Yes, I meant atomic<> crossing DLL boundaries, of course. However, I don't find such use cases contrived or bad.
Can you give an example?
Reference counting? A library might return a smart pointer to a structure with a reference counter. Linking reference counting methods or making them virtual may be undesirable to allow inlining.