mockcpp/OutBound.h:53:7: warning: ‘mockcpp::OutBound<pcepEthrpData>::ref’ will be initialized after [-Wreorder]
T ref;
^~~
include/mockcpp/OutBound.h:33:49: warning: base ‘mockcpp::DecoratedConstraint’ [-Wreorder]
: ref(val), DecoratedConstraint(constraint)
^
include/mockcpp/OutBound.h:32:5: warning: when initialized here [-Wreorder]
OutBound(const T& val, Constraint* constraint = 0)
^~~~~~~~
https://github.com/sinojelly/mockcpp/blob/4c2b6d491fff3a8e76801c4b602dc9a55b096423/include/mockcpp/OutBound.h#L33
应该先构造基类,后构造成员,当前会产生编译告警