This TMP struct is tested by implicit "auto cast" operators. Those might be disabled for combinations of types.
For example, implicit casting from class AString to sibling types CString and Substring has to be forbidden, because both are also constructible implicitly from this class and hence an ambiguity between implicit cast and implicit construction would arise.
Custom classes might encounter similar problems. In that case, this TMP type may be specialized to mitigate compilation issues.
TFrom | The type that allows implicit auto-casts. |
TImOrExplict | Denotes if implicit or explicit casts are suppressed. |
TTo | The destination type that auto-casts should be suppressed for. |
TEnableIf | Helper parameter used for templated specializations of this struct. |
Definition at line 65 of file strings/fwds.hpp.
#include <fwds.hpp>