ALib C++ Library
Library Version: 2510 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
alib::strings::NoAutoCastTraits< TFrom, TImOrExplict, TTo > Struct Template Reference

Description:

template<typename TFrom, characters::Policy TImOrExplict, typename TTo>
struct alib::strings::NoAutoCastTraits< TFrom, TImOrExplict, TTo >

This the type trait is tested by implicit "auto cast" operators. Those might be disabled for specific 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 (i.e., if derived from class TAString) might encounter similar problems. In that case, this type-traits type may be specialized to mitigate compilation issues.

Template Parameters
TFromThe type that allows implicit auto-casts.
TImOrExplictDenotes if implicit or explicit casts are suppressed.
TToThe destination type that auto-casts should be suppressed for.

Definition at line 42 of file string.inl.

Inheritance diagram for alib::strings::NoAutoCastTraits< TFrom, TImOrExplict, TTo >:
[legend]
Collaboration diagram for alib::strings::NoAutoCastTraits< TFrom, TImOrExplict, TTo >:
[legend]

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