1. 07 Apr, 2020 1 commit
  2. 04 Feb, 2020 2 commits
    • 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
    • Ted Lyngmo's avatar
      Move the YAML_CPP_NOEXCEPT macro to include/yaml-cpp/noexcept.h (#813) · 1928bca4
      Ted Lyngmo authored
      This is in preparation for other patches that will make use of the
      macro. The patch also removes #undef:ing the macro after its been
      used to not make the header inclusion order critical. Otherwise,
      the new header would always have to be the last of the yaml-cpp
      headers to be included.
      1928bca4
  3. 21 Jan, 2020 1 commit
  4. 23 Nov, 2019 1 commit
  5. 05 Oct, 2019 1 commit
  6. 02 Oct, 2019 4 commits
  7. 17 Apr, 2019 1 commit
  8. 24 Mar, 2019 1 commit
  9. 13 Mar, 2019 1 commit
    • Ted Lyngmo's avatar
      Apply formatting/style tweaks to comply with compile time diagnostics for g++ and clang++ (#686) · 0d5c5715
      Ted Lyngmo authored
      * Add compilation flags: -Wshadow -Weffc++ -pedantic -pedantic-errors
      * Delete implicit copy & move constructors & assignment operators
        in classes with pointer data members.
      * An exception to the above: Add default copy & move constructors &
        assignment operators for the Binary class.
      * Convert boolean RegEx operators to binary operators.
      * Initialize all members in all classes in ctors.
      * Let default ctor delegate to the converting ctor in
        Binary and RegEx
      * Don't change any tests except regex_test (as a result of the change
        to binary operators).
      
      Note: https://bugzilla.redhat.com/show_bug.cgi?id=1544675 makes
      -Weffc++ report a false positive in "include/yaml-cpp/node/impl.h".
      0d5c5715
  10. 12 Mar, 2019 1 commit
  11. 21 Dec, 2018 1 commit
    • Simon Gene Gottlieb's avatar
      Fix float precision (#649) · abf941b2
      Simon Gene Gottlieb authored
      The issue is that numbers like
      2.01 or 3.01 can not be precisely represented with binary floating point
      numbers.
      
      This replaces all occurrences of 'std::numeric_limits<T>::digits10 + 1' with
      'std::numeric_limits<T>::max_digits10'.
      
      Background:
      Using 'std::numeric_limits<T>::digits10 + 1' is not precise enough.
      Converting a 'float' into a 'string' and back to a 'float' will not always
      produce the original 'float' value. To guarantee that the 'string'
      representation has sufficient precision the value
      'std::numeric_limits<T>::max_digits10' has to be used.
      abf941b2
  12. 23 Nov, 2018 1 commit
  13. 25 Sep, 2018 1 commit
  14. 23 Sep, 2018 1 commit
  15. 04 Sep, 2018 1 commit
  16. 03 Sep, 2018 2 commits
  17. 03 Jul, 2018 1 commit
  18. 30 Jun, 2018 1 commit
  19. 14 May, 2018 1 commit
  20. 24 Mar, 2018 1 commit
  21. 28 Jan, 2018 1 commit
  22. 25 Jul, 2017 1 commit
  23. 13 Dec, 2016 1 commit
  24. 03 Dec, 2016 3 commits
  25. 02 Dec, 2016 1 commit
  26. 12 Oct, 2016 2 commits
  27. 18 Aug, 2016 1 commit
  28. 18 Jul, 2016 1 commit
    • c0nk's avatar
      Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>> (#386) · f0b15cd6
      c0nk authored
      * Change node_map type from map<ptr,ptr> to vector<pair<ptr,ptr>>
      
      Map nodes are now iterated over in document order.
      
      * Change insert_map_pair to always append
      
      Always append in insert_map_pair even if the key is already present.
      This breaks the behavior of force_insert which now always inserts KVs
      even if the key is already present. The first insert for duplicated keys
      now takes precedence for lookups.
      f0b15cd6
  29. 13 May, 2016 4 commits