|
reSIProcate/rutil
9694
|
#include <Data.hxx>
Public Member Functions | |
| DataLocalSize (size_t) | |
This template is here to help diagnose API/ABI mismatches. Say you build librutil. A single Data::init(DataLocalSize<RESIP_DATA_LOCAL_SIZE>) function is implemented in Data.cxx, with the default value. (Data::init(DataLocalSize<16>) ends up being defined, Data::init(DataLocalSize<15>) does not) If, later, another build using that librutil tries to tweak the local alloc size to 24, it will end up attempting to call Data::init(DataLocalSize<24>); this will result in a link-time error, that while opaque, is less opaque than the stack corruption that would result otherwise.
| resip::DataLocalSize< S >::DataLocalSize | ( | size_t | ) | [inline, explicit] |
1.7.5.1