News for hackers. Stuff that matters.
Re:C++ Patterns: The Badge by a1369209993 on Tuesday June 11, 2019 @10:33PM (#20161263)
You actually need:

  template<typename T>
  Badge<T> FakeBadge() {
    static struct Stub {} stub;
    return *(Badge<T>*)&stub;
    };

There are no comments on this comment yet.