When copying a detail::FormatListN object, the m_formatterStore must also be copied, otherwise the pointer in the parent FormatList class are possibly invalid.
This addresses the segfault explained in #58. The issue arises when makeFormatList returns an object which holds a pointer to memory created for the temporary object on the stack.
When copying a
detail::FormatListN
object, the m_formatterStore must also be copied, otherwise the pointer in the parentFormatList
class are possibly invalid.This addresses the segfault explained in #58. The issue arises when
makeFormatList
returns an object which holds a pointer to memory created for the temporary object on the stack.