Skip to content

Releases: ZXShady/enchantum

0.4.0

26 Jan 04:24

Choose a tag to compare

What's Changed

  • Please fix cast examples by @toge in #14

New Contributors

  • @toge made their first contribution in #14

Full Changelog: 0.3.0...0.4.0

  • Added generators
  • Optimized binary sizes by adding generators
  • C++17 support & more compilers supported
  • General compile time optimizations
  • Compile time checks
  • Added scoped output function varaints

0.3.0

14 Jun 03:06

Choose a tag to compare

  • Added clang 10 - 13 support
  • Fixed a clang edge case with a C style enum in global namespace with it's zero member having a single letter name
  • Added support for MSVC 19.31 with ENCHANTUM_ENABLE_MSVC_SPEEDUP (tested through godbolt)
  • BREAKING
    • Removed istream.hpp and ostream.hpp, replaced by iostream.hpp and enchantum::iostream_operators namespace.
  • Minor optimization for to_string

0.2.0

08 Jun 05:03

Choose a tag to compare

  • Brings type_name and raw_type_name into public API (Thanks @Mishura4 for her suggestion)

  • Big compile boost time for GCC,Clang and MSVC especially with larger ranges.

  • Add scoped functions in namespace scoped they output or check for the enum scope (e.g Enum::Value for scoped::to_string)

    • scoped::to_string
    • scoped::cast<E>
    • scoped::to_string_bitflag
    • scoped::cast_bitflag<E>
    • scoped::contains
    • scoped::contains_bitflag
  • Fix a bug with overriding is_bitflag while not providing overloaded operators.

  • Optimizations for contiguous bitflags,cast and contains functions for std::string_view overloads.

0.1.0

29 May 12:13

Choose a tag to compare

  • Added enchantum::bitset
  • BREAKING All formatting operators and functions use enchantum::to_string_bitflag if the enum is a bitflag and outputs the underlying type value if it does not corrospond to a valid enum name
  • Added cmake install
  • Add ENCHANTUM_CONFIG_FILE macro include to be used.

0.0.2

08 May 23:20

Choose a tag to compare

Fixed bugs with cast_bitflag and to_string_bitflag.

Fixed clang 20 issues with Enums with no fixed underlying type.

Fixed 0 value not getting reflected in BitFlagEnums

Added options for controlling whether strings should be null terminated.

Moved some headers into main api like cast and removed cast.hpp

Version 0.0.1

05 May 23:29

Choose a tag to compare

Issues that will be fixed in next release but I wanted to get a release so people don't have to constantly redownload all the commits I make

0 values of BitFlags aren't reflected.