Skip to content

psiha/pimpl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Pimpling in Cpp

Proving pimpls do not require heap, exceptions or runtime polymorphism.

IOW showing why "Attempt #3" (as an idea) is not deplorable, rather what is deplorable is giving up on efficiency just becuase the language does not yet OOB cover all the edge cases or rough edges: of all the points raised all but one has been solved by cpp practice and language developments (aligned storage, static assertions, CRTP and policy based design, perfect forwarding, delegating and inheriting constructors and explicitly deleted member functions).

The one remaining issue is manual updating of the storage and alignment requirements: and this could easily be solved once modules get into the language, i.e. if they 'get them right' (and add a standardized option of 'exporting' just the sizeof and alignof information of classes).

Related/similar developments, contributions and discussions

C++ In-The-Kernel Now!
Copyright © 2016. Domagoj Saric. All rights reserved.

Releases

No releases published

Packages

No packages published

Languages