6 ms·
does that include the 'export' word for templates, which was supposed to be available many c++ versions ago (don't think it ever got implemented in msvc).
by stargrazer 10y ago
does that include the 'export' word for templates, which was supposed to be available many c++ versions ago (don't think it ever got implemented in msvc).
- arximboldi 10y agoThat was removed in C++11, precisely because compilers could not afford to implement it. http://en.cppreference.com/w/cpp/keyword/export http://en.cppreference.com/w/cpp/keyword/export
- gpderetta 10y agoEven the authors of the only compiler that had ever implemented it (EDG) said that it was a lot of work for little benefit and pushed for outright removal without deprecatation. Modules eventually, more than 20 years later, might be a better solution.
- gcp 10y agopushed for outright removal without deprecatation And they got rebuffed by people that never managed to ship a working implementation. Standard committees yay!
- gpderetta 10y agoDid they? extern was removed without deprecation.
- wyldfire 10y agoThat seems very selfless of them. If they acted like other competitive markets, they'd want their competition to suffer the challenge that they did and they'd create a message that they were the first ones to satisfy the standard. They must really have the best interests of the language in mind.
- gpderetta 10y agoThey are! EDG is a tiny company but is extremely highly regarded and its founders (Stephen Adamczyk, John Spicer, Daveed Vandevoorde) are considered legends in the community. At a time where GCC was still catching up, MSVC was in the dark ages and clang still not existent, EDG used to be the standard compliant C++ front end. It is still the front end for a lot of proprietary compilers (Intel, MSVC intellisense, Comeau) and I hear it is a very high quality codebase.
- stargrazer 10y agoIt has been a while since I played with what I wanted the 'export' to do (I guess get my templates split up with information hiding to reduce compile times). What is common practice to do that now-a-days? Is that with modules (but I'm not sure if that is a standard yet, I could be mistaken).