‹ BackHN Continuity

Thread

EDG C++ front-end goes public

249 points · 129 comments · iandinwoodie

  1. layer8 · · focus · HN ↗
    The only implementation to ever support the C++98 “export template” feature, as far as I know. I wonder if that’s still in the open-sourced version.
    1. throwaway2037 · · focus · HN ↗
      I'll never forget working on a personal C++ project in the very early 2000s. In parallel, I was reading Bjarne Stroustrup's famous C++ bible. He diligently explained how the “export template” feature worked. I tried to use it. I was compiling with GCC on Linux. I spent days trying to understand why it didn't work. Finally, I found a blog post explaining why it was so hard to implement, and no open source C++ compilers supported it. What a disappointment!
      1. feelamee · · focus · HN ↗
        what this keyword did? I never heard of it
        1. daveedvdv · · focus · HN ↗
          It allowed you to put the _definitions_ of your function templates in your ".cpp" files instead of your header files.
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.