reSIProcate/rutil  9694
Public Member Functions
resip::DataLocalSize< S > Struct Template Reference

#include <Data.hxx>

List of all members.

Public Member Functions

 DataLocalSize (size_t)

Detailed Description

template<int S>
struct resip::DataLocalSize< S >

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.

Definition at line 39 of file Data.hxx.


Constructor & Destructor Documentation

template<int S>
resip::DataLocalSize< S >::DataLocalSize ( size_t  ) [inline, explicit]

Definition at line 41 of file Data.hxx.

{}

The documentation for this struct was generated from the following file: