Skip to content

Well I found this bug in my code that changes the PUPU id gen. #121

@Sebanisu

Description

@Sebanisu

I might of been messing up my pupu id gen. I noticed as I was fixing up some code. Moving stuff from header files to cpp files. I wasn't returning a reference when I should of been. So this might of caused some issues.
hopefully it wasn't used very often. heh.

     constexpr auto operator+=(std::uint32_t right)
     {
          m_raw += right;
          return *this;
     }

That should of returned an auto & it wasn't, or decltype(auto) could of worked too.
I changed it to

     constexpr PupuID &operator+=(std::uint32_t right) noexcept
     {
          m_raw += right;
          return *this;
     }

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions