• Ted Lyngmo's avatar
    Make SettingChange and StreamCharSourcemove constructors and assignment operators noexcept (#808) · 9ab22ef4
    Ted Lyngmo authored
    
    
    The explicitly defaulted or implemented move constructors and assignment
    operators are made "noexcept".
    
    Bugfix:
    * src/stream.cpp Stream::Stream() char_traits::int_type intro[4] is
      now aggregate-initialized (to zero) to avoid UB.
    
    Minor changes:
    * Using std::isinf() and std::signbit() instead of comparing for
      equality with infinity.
    * src/streamcharsource.h: Added #include "stream.h".
    * src/stream.h: Forward declaring "class StreamCharSource".
    * Some implicit casting changed into static_cast's.
    Signed-off-by: default avatarTed Lyngmo <ted@lyncon.se>
    9ab22ef4
stream.h 2.02 KB