MHN
Add a comment on Hacker News →
1 of 26 comments
  1. I tried really hard to find a main() function browsing the demo source code, but I could not. I also find it interesting that code boilerplating is called out as a problem, but I run into code like this:

      #include "Protocol.h"
    
      #include "comms/comms.h"
    
      namespace cc = comms_champion;
    
      namespace demo
      {
    
      namespace cc_plugin
      {
    
      Protocol::~Protocol() noexcept = default;
    
      const QString& Protocol::nameImpl() const
      {
          static const QString& Str("Demo");
          return Str;
      }
    
      }  // namespace cc_plugin
    
      }  // namespace demo