[#BloombergLP-balst-StackTracePrinter-2constructor-0b] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/balst.adoc[balst]::xref:BloombergLP/balst/StackTracePrinter.adoc[StackTracePrinter]::StackTracePrinter :relfileprefix: ../../../ :mrdocs: Constructors == Synopses Declared in `<balst_stacktraceprinter.h>` Create a copy of the specified `original`. Default the copy constructor to work around a bug on the Aix compiler that generates warnings every time an object of this type is passed to `operator<<` if this constructor is deleted or private. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- constexpr xref:BloombergLP/balst/StackTracePrinter/2constructor-0a.adoc[StackTracePrinter](xref:BloombergLP/balst/StackTracePrinter.adoc[StackTracePrinter] const& original) = default; ---- [.small]#xref:BloombergLP/balst/StackTracePrinter/2constructor-0a.adoc[_» more..._]# Create a `StackTracePrinter` object that will, if streamed, render a description of the current call stack to the stream. Optionally specify `maxFrames` indicating maximum number of frames to dispay. If `maxFrames` is ‐1 or unspecified, use a value of at least 1024. The optionally specified `demanglingPreferredFlag` determines whether demangling occurs, on platforms where demangling is available and optional. Optionally specify `additionalIgnoreFrames` which is added to `bsls::StackAddressUtil::k_IGNORE_FRAMES` to ignore the topmost frames of the caller. Return a reference to `stream`. The behavior is undefined unless `‐1 == maxFrames` or `0 <= maxFrames`, and unless `0 <= additionalIgnoreFrames`. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- explicit xref:BloombergLP/balst/StackTracePrinter/2constructor-03.adoc[StackTracePrinter]( int maxFrames = ‐1, bool demanglingPreferredFlag = true, int additionalIgnoreFrames = 0); ---- [.small]#xref:BloombergLP/balst/StackTracePrinter/2constructor-03.adoc[_» more..._]# [.small]#Created with https://www.mrdocs.com[MrDocs]#