04-06-2016, 07:56 PM
So there's been rumors C++1z will get a module system in a plan to silently kill the header file mechanism. Some say it won't make it in C++1z, but that there are plans to get it sooner or later into the standard. I like header files personally, despite the problems they cause (maybe just because I got used to them). What I fear is the leap happening so suddenly, and I get left behind with my projects following the then-old header file mechanism.
From the looks of it, it seems people have somewhat began moving already; with how I see template generic types being implemented in .h(pp) files only. I still follow the trend of the .h(pp) .cpp pair since that feels "healthier" for the current standards, but I'm always burdened with having to declare the class for every (combination of) template argument(s).
I don't know, I'm confused. How should I be doing it, and where's all of this going? What are some best practices of using .h(pp) files nowadays, and have anyone here got an idea on how this module system will likely work?
From the looks of it, it seems people have somewhat began moving already; with how I see template generic types being implemented in .h(pp) files only. I still follow the trend of the .h(pp) .cpp pair since that feels "healthier" for the current standards, but I'm always burdened with having to declare the class for every (combination of) template argument(s).
I don't know, I'm confused. How should I be doing it, and where's all of this going? What are some best practices of using .h(pp) files nowadays, and have anyone here got an idea on how this module system will likely work?
![[Image: signature.png]](http://s3.postimg.org/wedqxlk3n/signature.png)
A-Engine: A new beat em up game engine inspired by LF2. Coming soon
A-Engine Dev Blog - Update #8: Timeout