4 ms·
"Most C++ compilers (G++ included) do not yet implement export". For me, non compliance with such an old spec is a bug.
by webreac 12y ago
"Most C++ compilers (G++ included) do not yet implement export". For me, non compliance with such an old spec is a bug.
- Sharlin 12y agoIt's more like export was a bug in C++98. It was removed without a deprecation period in C++11.
- webreac 12y agoI didn't know. My last professional development in C++ was in 2002. At that time http://www.comeaucomputing.com/ http://www.comeaucomputing.com/ was my reference.
- GFK_of_xmaspast 12y agoTurns out a lot has changed in the c++ world in the last 15 years. (trigraphs are going away too)
- X-Istence 12y agoThere is a single C++ compiler that supports export. Out of all the C++ compilers, only a single one supports it. Mainly because it is such a HUGE pain in the ass to write support for. See this paper as to why it was removed from the spec: http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n1426.pdf http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2003/n142...
- andrewchambers 12y agoThose guys had serious dedication to essentially waste 3 years implementing it, just to say how useless it is.
- Retra 12y ago"John Spicer notes: “Any program written using export can be rearranged trivially into a program that doesn’t use export.”" This makes me wonder why they couldn't have implemented this rearrangement as export...
- andrewchambers 12y agoProbably trivially with some human judgment.
- userbinator 12y agoThat is a great counterpoint to this comment I saw recently: https://news.ycombinator.com/item?id=9126237 https://news.ycombinator.com/item?id=9126237