Skip to content

Commit

Permalink
- GCC needs this commented out but really shouldn't.
Browse files Browse the repository at this point in the history
  • Loading branch information
coelckers committed Jun 6, 2022
1 parent d2eaaf7 commit f599040
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions source/common/objects/dobjgc.h
Expand Up @@ -183,10 +183,12 @@ class TObjPtr
TObjPtr() = default;
TObjPtr(const TObjPtr<T> &q) = default;

#if 0 // Courtesy of GCC being stupid and not fully recognizing TobjPtr as trivial. GZDoom needs this constructor, but it breaks compilation in Raze, but only with GCC.
TObjPtr(T q) noexcept
: pp(q)
{
}
#endif
T operator=(T q)
{
pp = q;
Expand Down

0 comments on commit f599040

Please sign in to comment.