#1915·mediasoup

C++: Don't initialize mandatory class members in the .hpp

Author: ibcCreated Sep 7, 2026Updated Sep 7, 2026

Overview

Some C++ classes have members that must be passed via constructor. However those members usually have a default value (0, nullptr, etc) in the class .hpp file.

Remove that initial value so the compiler will warn or fail if the member is not initialized in the constructor.