Releases: microsoft/STL
Releases · microsoft/STL
VS 2022 17.2
- Merged C++20 Defect Reports:
- Merged C++23 features:
- Merged LWG issue resolutions:
- LWG-2762 #2376
unique_ptr
operator*()
should benoexcept
- LWG-2774 #2098
std::function
construction vs assignment - LWG-3146 #2409 Excessive unwrapping in
std::ref
/cref
- LWG-3392 #2421
ranges::distance()
cannot be used on a move-only iterator with a sized sentinel - LWG-3470 #2414
convertible-to-non-slicing
seems to reject valid case - LWG-3471 #2567
polymorphic_allocator::allocate
does not satisfy Cpp17Allocator requirements - LWG-3480 #2340
directory_iterator
andrecursive_directory_iterator
are not C++20 ranges - LWG-3519 #2208 Incomplete synopses for
<random>
classes - LWG-3543 #2424 Definition of when
counted_iterator
s refer to the same sequence isn't quite right - LWG-3557 #2406 The
static_cast
expression inconvertible_to
has the wrong operand - LWG-3563 #2426
keys_view
example is broken - LWG-3574 #2410
common_iterator
should be completelyconstexpr
-able - LWG-3580 #2417
iota_view
'siterator
's binaryoperator+
should be improved - LWG-3589 #2425 The
const
lvalue reference overload ofget
forsubrange
does not constrainI
to becopyable
whenN == 0
- LWG-3590 #2404
split_view::base() const &
is overconstrained - LWG-3591 #2411
lazy_split_view<input_view>::
inner-iterator
::base() &&
invalidates outer iterators - LWG-3592 #2411
lazy_split_view
needs to check the simpleness ofPattern
- LWG-3593 #2448 Several iterators'
base() const &
andlazy_split_view::
outer-iterator
::value_type::end()
missingnoexcept
- LWG-3595 #2410 Exposition-only classes
proxy
andpostfix-proxy
forcommon_iterator
should be fullyconstexpr
- LWG-3598 #2560
system_category().default_error_condition(0)
is underspecified - LWG-3610 #2542
iota_view::size
sometimes rejects integer-class types - LWG-3612 #2586 Inconsistent pointer alignment in
std::format
- LWG-3618 #2566 Unnecessary
iter_move
fortransform_view::iterator
- LWG-3621 #2543 Remove feature-test macro
__cpp_lib_monadic_optional
- LWG-3648 #2587
format
should not printbool
with'c'
- LWG-3654 #2528
basic_format_context::arg(size_t)
should benoexcept
- LWG-3657 #2564
std::hash<std::filesystem::path>
is not enabled - LWG-3660 #2549
iterator_traits<common_iterator>::pointer
should conform to[iterator.traits]
- LWG-3661 #2544
constinit atomic<shared_ptr<T>> a(nullptr);
should work
- LWG-2762 #2376
- Merged proposed resolutions for LWG issues (not yet accepted for the C++ Working Draft, but we've chosen to implement this speculatively):
- Fixed bugs:
- Fixed Clang compiler errors when using
ranges::join_view
. #2352 - Fixed several runtime correctness bugs in
std::string
. #2305 - Fixed a memory leak affecting a specific scenario in P0408R7 Efficient Access To
basic_stringbuf
's Buffer. #2361 - Each call to
ranges::clamp
now correctly performs at most three projections. #1898 - The STL no longer rejects Clang in CUDA mode, nor the
cl /showIncludes /D__CUDACC__ ...
command used by CUDA's msbuild integration to gather dependencies. #2075 - Fixed
allocator::is_always_equal
to be deprecated, not removed, in C++20 mode. (It was deprecated by LWG-3170.) #2423 - Fixed
begin()
/end()
crashing for emptyvalarray
s, which also affected range-based for-loops. #2435 - Fixed regression in
ranges::distance
(from LWG-3392 which brokeranges::distance(some_array, s)
) by speculatively implementing LWG-3664. #2522 - Fixed
basic_string::resize_and_overwrite()
to no longer emit "warning C4018: signed/unsigned mismatch" when given certain user-defined function objects. #2525 - Increased
__cpp_lib_concepts
to its final value for C++20,202002L
. #2559- It should have been updated in VS 2019 16.6 when P1964R2 "Replacing
boolean
Withboolean-testable
" was implemented by #565. The presence of that release (or any later release) can be detected by inspecting our implementation-specific macro_MSVC_STL_UPDATE
. Coincidentally, the value of_MSVC_STL_UPDATE
for VS 2019 16.6 was also202002L
.
- It should have been updated in VS 2019 16.6 when P1964R2 "Replacing
- Fixed numerous tiny bugs discovered by the
libcxx
test suite. #2499 - Fixed a bug in
<format>
that sporadically caused incorrect output when formatting floating-point values inhex
orscientific
notation with extremely large precisions. #2569 - Fixed a bug in
<charconv>
from_chars()
float
tiebreaking that produced incorrect results. This affected decimal strings that were at the exact midpoint of consecutivefloat
values, within a narrow range (the smallest and largest affected values were"32768.009765625"
and"131071.98828125"
), where the tiebreaker rule wanted to round to "even" and "even" happened to be "down", but the implementation incorrectly rounded "up". (double
was unaffected.) #2366 promise<T>
now compiles when!is_default_constructible_v<T>
. #2568- Moving from an
optional<const T>
now behaves like moving from aconst T
: it selectsT
's copy constructor. #2460 - Fixed a bug in
<format>
that incorrectly acceptedvolatile
arguments; the Standard currently says that they should be rejected. #2579
- Fixed Clang compiler errors when using
- Improved performance:
- Optimized
rotl()
androtr()
in<bit>
for 32-bit and 64-bit integers by using compiler intrinsics. [#2369](https:...
- Optimized
VS 2022 17.1
- Merged C++20 Defect Reports:
- Merged C++23 features:
- P0448R4 #2029
<spanstream>
- P0943R6 #2008 Supporting C Atomics In C++
- Note:
<stdatomic.h>
is currently supported when compiling as C++ (/std:c++latest
). It is not yet supported when compiling as C (/std:c11
and/std:c17
), but support for C atomics is planned for a future release. For more info, see the September 2020 blog post "C11 and C17 Standard Support Arriving in MSVC".
- Note:
- P1072R10 #2258
basic_string::resize_and_overwrite
- P1147R1 #2262 Printing
volatile
Pointers - P1272R4 #2235
byteswap()
- P1425R4 #1994 Iterator Pair Constructors For
stack
Andqueue
- P1518R2 #2032 Stop Overconstraining Allocators In Container Deduction Guides
- P1659R3 #1997
ranges::starts_with
,ranges::ends_with
- P2136R3 #2019
invoke_r()
- P2251R1 #2259 Require
span
Andbasic_string_view
To Be Trivially Copyable - P2401R0 #2263 Conditional
noexcept
Forexchange()
- P0448R4 #2029
- Merged LWG issue resolutions:
- P2259R1 #2059 Repairing Input Range Adaptors And
counted_iterator
- Completed by implementing the input range adaptors part.
- LWG-3422 #2260 Issues of
seed_seq
's constructors - LWG-3506 #1994 Missing allocator-extended constructors for
priority_queue
- LWG-3520 #2200
iter_move
anditer_swap
are inconsistent fortransform_view::
iterator
- LWG-3522 #1994 Missing requirement on
InputIterator
template parameter forpriority_queue
constructors - LWG-3527 #2194
uses_allocator_construction_args
handles rvalue pairs of rvalue references incorrectly - LWG-3528 #2160
make_from_tuple
can perform (the equivalent of) a C-style cast - LWG-3536 #2037 Should
chrono::from_stream()
assign zero toduration
for failure? - LWG-3546 #1991
common_iterator
'spostfix-proxy
is not quite right - LWG-3549 #2198
view_interface
is overspecified to derive fromview_base
- LWG-3554 #2261
chrono::parse
needsconst charT*
overloads
- P2259R1 #2059 Repairing Input Range Adaptors And
- Fixed bugs:
- Fixed
<complex>
exp()
andpolar()
for infinity and NaN inputs. #1584 - Fixed compiler errors when comparing
common_iterator
s of different types for equality. #2066 - Attempting to actually call
declval()
now emits astatic_assert
citing the paragraph of the Standard that forbids this. (Previously,declval()
was declared but not defined, which was too permissive.) #2101 - Fixed
basic_streambuf::seekoff()
andbasic_streambuf::seekpos()
to work with custompos_type
s. #2121 - Restored our guarantee beyond the Standard that
string_view
is trivially move constructible. #2128 - Fixed a bug where
vector
andstring
would terminate vianoexcept
instead of throwinglength_error
as desired when asize_t
would be truncated to an allocator's narrowersize_type
. #2139 <istream>
and<ostream>
now properly catch and rethrow internal IO exceptions. #2033- Fixed
<format>
to correctly print hexfloats with large precisions. #2157 - Fixed compiler errors when using
constexpr
vector
s with certain user-defined allocators. #2161 - Fixed silent bad codegen in
ranges::stable_sort()
, where for certain inputs it would neither sort nor permute the range.ranges::inplace_merge()
was also affected. #2188 subtract_with_carry_engine
's textual representation is now correct. #2088- Fixed a deadlock in the overload of
condition_variable_any::wait_until
takingstop_token
. #2220 u8streampos
,u16streampos
, andu32streampos
are now declared by<iosfwd>
as required by the Standard after P0482R6 and P1148R0 were accepted. #2223- Fixed ARM64EC compiler errors in
<limits>
. #2306 - Fixed heap corruption in
fstream
when callingputback()
followed byclose()
. #2189 - Fixed
views::reverse
to work properly withranges::reverse_view
lvalues. #2313 - Fixed a bug where the STL's DLL was using Windows Vista's APIs for critical sections and condition variables, instead of the more efficient APIs that were introduced in Windows 7. This was specific to
/MD
(dynamic release) and the STL's GitHub CMake build system; it did not affect the legacy build system that's currently used for official builds of the MSVC toolset. #2314 - Fixed a bug affecting older CPUs where the STL generated the newer
tzcnt
instruction instead of the fallbackbsf
instruction. This affected<bit>
'scountr_zero()
andcountr_one()
,<numeric>
'sgcd()
andlcm()
, andvector<bool>
's optimized implementations offind()
and relational/spaceship operators. #2333 - Fixed minor conformance issues in
basic_string
. These changes were specified by P1148R0 "Cleaning Up[strings]
", which was almost a pure rewording paper without normative impact. Oops! #2222 - Fixed
ranges::find_end()
to return correct values for bidirectional common ranges. #2270 - Fixed compiler errors affecting
ranges::sort()
,ranges::search()
, and other ranges machinery. #2290 - Fixed
array<T, 0>
, allowing it to compile whenT
is not default constructible. #2296 - Fixed
allocator::allocate_at_least()
which was improperly annotated with__declspec(allocator)
. #2328
- Fixed
- Improved performance:
- Optimized
steady_clock::now()
whenQueryPerformanceFrequency()
is exactly 10 MHz, which is very common for modern PCs. #2086 - Improved codegen for x86 atomic loads. #2110
- Optimized the fallback implementation of
popcount()
, which is used when compiler intrinsics are unavailable (and is also used at compile time). #2079 - Slightly improved codegen when
<format>
prints a pointer in hexadecimal. #2097 - Optimized
<ranges>
non-propagating-cache
for trivially destructible types. #2118 - Improved ARM64 codegen for
popcount()
, using compiler intrinsics. #2127 - Extended the
memcpy()
, `...
- Optimized
VS 2022 17.0
- Merged C++20 Defect Reports:
- Enabled C++20 features for Clang: #2064
- Merged C++23 features:
- P0401R6 #2036 Providing Size Feedback In The Allocator Interface
- P1048R1 #1950
is_scoped_enum
- P1132R7 #1998
out_ptr()
,inout_ptr()
- P1679R3 #1478
contains()
Forbasic_string
/basic_string_view
- P1682R3 #1828
to_underlying()
For Enumerations - P1951R1 #2009 Default Template Arguments For
pair
's Forwarding Constructor - P1989R2 #2000 Range Constructor For
string_view
- P2162R2 #2006 Inheriting From
variant
- P2166R1 #1995 Prohibiting
basic_string
Andbasic_string_view
Construction Fromnullptr
- This is a common source-breaking change - code that previously had undefined behavior at runtime will now be rejected with compiler errors.
- P2186R2 #2010 Removing Garbage Collection Support
- Merged LWG issue resolutions:
- LWG-3430 #1968
std::fstream
& co. should be constructible fromstring_view
- LWG-3494 #1877 Allow ranges to be conditionally borrowed
- LWG-3502 #1878
elements_view
should not be allowed to return dangling references - LWG-3518 #2080 Exception requirements on char trait operations unclear
- LWG-3533 #1993 Make
base() const &
consistent across iterator wrappers that supportinput_iterator
s - LWG-3541 #1992
indirectly_readable_traits
should be SFINAE-friendly for all types - LWG-3548 #2007
shared_ptr
construction fromunique_ptr
should move (not copy) the deleter - LWG-3553 #1990 Useless constraint in
split_view::
outer-iterator
::value_type::begin()
- LWG-3555 #1989
{transform,elements}_view::
iterator
::iterator_concept
should considerconst
-qualification of the underlying range
- LWG-3430 #1968
- Merged partial LWG issue resolutions:
- Fixed bugs:
- Fixed
time_put::do_put
to avoid crashing when the invalid parameter handler has been changed to not end execution. #1563 - Fixed a compiler error in
ranges::take_view
. #1844 - Fixed improper partitioning of forward ranges in the parallel algorithms. #1753
- Fixed an unintentionally dllexported symbol in the import library. #1927
- Fixed a bug in which
ranges::unique_copy
would fail to compile with a non-input output iterator. #1933 - Fixed a compiler error when calling
format_to()
in a specialization offormatter
(see #1961 for an example). #1874 - Fixed compiler errors when calling
views::drop
andviews::take
with types that aren't integers, but are convertible to integers (e.g.integral_constant
). #1958 - Fixed a compiler error when calling
constexpr
vector::emplace(position, args...)
. #1962 - Fixed
jthread
to providenative_handle()
. #1966 - Fixed
filesystem::remove()
to delete read-only files, as required by the Standard. #1559 - Fixed
mersenne_twister_engine
: #1631- Fixed the seeding algorithm to follow N4892 [rand.eng.mers]/8, avoiding an all-zero state. (This is a runtime special case.)
- Fixed the engine's behavior when
m == n
orn == 1
. (This is a compile-time special case, which doesn't affectmt19937
andmt19937_64
at all.) - Fixed
operator<<()
to avoid printing a trailing space after the engine's textual representation.
- Fixed
<chrono>
to adjust for leap seconds when formattingfile_time
. #1879 - Fixed
chrono::from_stream()
to allow a year and a day-of-year to be parsed to atime_point
. #1940 - Fixed
filesystem::u8path()
to acceptchar8_t
sources. #1943 - Fixed
<chrono>
to parse subseconds fortime_point
s. #1987- Also fixed the parsing of
local_time
with a UTC offset.
- Also fixed the parsing of
- Fixed
<chrono>
formatting to correctly estimate string widths (see N4892 [format.string.std]/9). #2017 - Fixed a major regression in the
_ITERATOR_DEBUG_LEVEL == 2
machinery, where a multithreaded program in debug mode could crash when one thread is modifying a container and another thread is destroying iterators. #2060- This regression affected all Standard modes (C++14/17/20/23) and was introduced by #1546 in VS 2019 16.10.
- Fixed in both VS 2019 16.11.4 and VS 2022 17.0.
- Fixed a compiler error in
pmr::map<K, pair<A, B>>::operator[]
. #2023 - Fixed compiler errors in
basic_string
'sgetline()
andoperator>>()
caused by the source-breaking change C++23 P2266R1 "Simpler Implicit Move", first implemented in Clang 13. #2025 bit_ceil()
now enforces its precondition duringconstexpr
evaluation, as required by the Standard. #2041clog
is no longer tied tocout
, and similarly forwclog
andwcout
, following the Standard. #2056- In
<ranges>
, whenfilter_view
,drop_view
,drop_while_view
, andreverse_view
store a cached position into an underlying view, they now properly invalidate that cached position when the underlying view is moved from. #1931
- Fixed
- Improved performance:
- Slightly improved debug codegen for
vector<bool>
,basic_string
, andmap
/multimap
/set
/multiset
'sempty()
member functions. #1836 - Fixed bloated codegen for
<format>
. #1874 - Dramatically improved the performance of
std::find()
andstd::count()
forvector<bool>
, with measured speedups between 19x and 26x (times, not percent). #1131 - Extended our
memcmp
/memcpy
/memchr
optimizations to ranges with contiguous iterators and unreachable sentinels. #1810 <format>
now detects when it's writing to aback_insert_iterator
for abasic_string
or avector
, and performs a faster call toinsert()
at theend()
of the container. #1894std::byte
now activates the "trivially swappable" optimization inreverse()
andvariant::swap()
, so it'll have the same performance asunsigned char
. #2044- Extended the vectorization optimization in
std::swap_ranges()
toranges::swap_ranges()
, and enhanced it to work for arbitrary contiguous iterators. #2048 - Reduced debug codegen size; an internal assertion macro was emitting completely unused, potentially long strings for function names. #2054
- Slightly improved debug codegen for
- Improved throughput:
<format>
and<chrono>
now avoid including `<arr...
VS 2019 16.9
- Merged C++20 features:
- P0339R6 #1311
polymorphic_allocator<>
- P0660R10 #1196
<stop_token>
Andjthread
- P0768R1 #1370 Library Support For The Spaceship Comparison Operator
<=>
- This feature was mostly implemented in VS 2019 16.0; it's now complete with the addition of the spaceship customization point objects
strong_order
,weak_order
,partial_order
,compare_strong_order_fallback
,compare_weak_order_fallback
, andcompare_partial_order_fallback
.
- This feature was mostly implemented in VS 2019 16.0; it's now complete with the addition of the spaceship customization point objects
- P1007R3 #1306
assume_aligned()
- P1020R1 #1315 Smart Pointer Creation With Default Initialization
- P1771R1 #1495 #1514
[[nodiscard]]
For Constructors
- P0339R6 #1311
- Merged partial C++20 features:
- P0355R7
<chrono>
Calendars And Time Zones:- #1341
operator<<(basic_ostream&, const duration&)
- #1341
- P0896R4 Ranges:
- #1092 #1265 #1268
common_iterator
- #1271
views::take
andviews::drop
now handlebasic_string_view
as specified in P1739R4. - #1313
ranges::construct_at
andranges::destroy_at
- #1164 algorithms
ranges::uninitialized_default_construct
,ranges::uninitialized_default_construct_n
,ranges::uninitialized_value_construct
,ranges::uninitialized_value_construct_n
,ranges::uninitialized_fill
,ranges::uninitialized_fill_n
,ranges::uninitialized_copy
,ranges::uninitialized_copy_n
,ranges::uninitialized_move_n
- #1281 Changes to the stream iterators (
istream_iterator
,ostream_iterator
,istreambuf_iterator
, andostreambuf_iterator
) to model the C++20 iterator concepts - #1366 view
ranges::drop_while_view
- #1406 view
ranges::elements_view
- #1334 view
ranges::istream_view
- #1372 view
ranges::take_while_view
- #1305
views::common
- #1375
views::counted
- #1092 #1265 #1268
- P1502R1 Standard Library Header Units:
- P0355R7
- Merged LWG issue resolutions:
- LWG-3036 #1455
polymorphic_allocator::destroy
is extraneous - LWG-3117 #1493 Missing
packaged_task
deduction guides - LWG-3170 #1501
is_always_equal
added tostd::allocator
makes the standard library treat derived types as always equal - LWG-3211 #1460
std::tuple<>
should be trivially constructible - LWG-3448 #1458
transform_view
'ssentinel
<false>
not comparable withiterator
<true>
- LWG-3460 #1452 Unimplementable
noop_coroutine_handle
guarantees - LWG-3464 #1483
istream::gcount()
can overflow
- LWG-3036 #1455
- Fixed bugs:
- Fixed the
invocable_r
family of type traits to handle C++17 deferred temporary materialization. #1282 - Fixed a compiler error in
atomic_ref<[u]int8_t>::operator--(int)
. #1303 - Removed non-Standard implicitly converting constructors from
complex
. #1294 - Enabled
constexpr
destruction ofmemory_resource
. #1314 std::filesystem::create_directories()
now throws an exception (or fails with anerror_code
) when called with an emptypath
. #1285- Fixed compiler errors (with clang-tidy and IntelliSense-in-Clang-mode) caused by
intrin0.h
includingintrin.h
, which no longer happens. #1300 - Fixed undefined behavior and incorrect results in
geometric_distribution
,poisson_distribution
,binomial_distribution
, andgamma_distribution
. #1159 - Fixed incorrect results (infinity and NaN) in
normal_distribution
,lognormal_distribution
,fisher_f_distribution
, andstudent_t_distribution
. #1228 - Fixed
bind_front()
to determine its return type from the decayed types of its arguments. #1293 - Fixed
pow(complex, arithmetic)
to strictly follow the Standard's rules and return correct results. #1299 - Fixed
_Node_handle
- the internal class template that reifies the Standard'snode-handle
family of exposition-only types - to destroy contained values with an allocator rebound to the value type instead of to the type of the node. #1310 - Fixed overflow when converting extreme relative times (like
duration::max()
) to absolute times incondition_variable_any::wait_for()
,condition_variable::wait_for()
,recursive_timed_mutex::try_lock_for()
,shared_timed_mutex::try_lock_for()
,shared_timed_mutex::try_lock_shared_for()
,this_thread::sleep_for()
, andtimed_mutex::try_lock_for()
. #1371 - Fixed a compiler error when compiling
<experimental/generator>
in/kernel
mode. #1373 - Fixed
std::atomic_init
; C++20 deprecated it (which we previously implemented) and changed its effects to be equivalent to a relaxed store (which we previously missed). #1090 - Fixed
get_time()
to correctly handle format specifications without delimiters; for example,"20201029"
can now be parsed with"%Y%m%d"
. #1280- This fix was incomplete; it was completed by #1620 in VS 2019 16.10.
- Fixed the ordered associative containers (
map
,multimap
,set
,multiset
) so that their move constructors and move assignment operators don't attempt to swap their comparators (which could fail to compile, especially for lambdas which aren't assignable). #1357 - Fixed a crash when a user-defined class, deriving from
streambuf
, threw an exception from its constructor. #1358 - Fixed two lines in ranges machinery that mistakenly said
noexcept(noexcept(is_nothrow_v))
(which is alwaysnoexcept(true)
). Now they saynoexcept(is_nothrow_v)
as intended. #1417 - Marked
hash<coroutine_handle<>>::operator()
asconst
, required by the Standard. #1423 - Fixed several issues in
complex
sqrt()
andlog()
: #935- Fixed
sqrt()
overflow for huge inputs. - Fixed
sqrt()
inaccuracy for tiny inputs, due to internal underflow. - Fixed
log()
inaccuracy for tiny inputs, due to internal underflow. - Improved accuracy of
log()
when |z| ~= 1. - Fixed
log(complex<float>{1, 0})
for certain combinations of compile-time and run-time settings; now it correctly returns0
. - These correctness fixes have a moderate performance cost, partially mitigated by using hardware FMA when available on x86/x64/arm64.
- Fixed
- Fixed an AddressSanitizer
new-delete-type-mismatch
issue invalarray
. #1496 - Fixed linker errors on ARM and ARM64 when using atomic waits. #1507
- Fixed the exception specification for
basic_string_view
's (iterator, sentinel) constructor. #1510 - Fixed
regex_traits::transform()
to accept arbitrary forward iterators instead of requiring raw pointers. #1494 - Fixed a
static_assert
that was preventingatomic_ref<const T>
from compiling. #1500 - Fixed a compiler error when compiling
<atomic>
in C++20 mode with Clang targeting ARM64. #1509
- Fixed the
- Improved performance:
- Removed unused code for Windows XP (and Server 2003) support, slightly improving runtime performance and decreasing...
VS 2019 16.8
- Merged C++20 features:
- P0019R8 #843
atomic_ref
- P0528R3 #1029 Atomic Compare-And-Exchange With Padding Bits (for MSVC; Clang support is pending compiler intrinsics, see LLVM-46685)
- Completed P0553R4 and P0556R3 #795 by adding MSVC support for the functions in
<bit>
that were previously only supported when compiling with Clang (bit_ceil
,bit_floor
,bit_width
,countl_one
,countl_zero
,countr_one
,countr_zero
,has_single_bit
,popcount
,rotl
, androtr
). - Completed P0811R3 #1048
midpoint()
,lerp()
by addingconstexpr
support and improving handling of infinite arguments. - P0912R5 #894 #961 #1204 Library Support For Coroutines
- P1001R2 #1111
execution::unseq
- P1032R1 #491 #861 Miscellaneous
constexpr
- P1065R2 #703
constexpr
INVOKE - Completed P1135R6 The C++20 Synchronization Library:
- P0019R8 #843
- Merged partial C++20 features:
- P0896R4 Ranges:
- #888 algorithm
ranges::move
- #892 algorithm
ranges::is_permutation
- #896 algorithm
ranges::search
- #904 algorithms
ranges::fill
andranges::fill_n
- #905 algorithms
ranges::generate
andranges::generate_n
- #914 algorithm
ranges::search_n
- #915 algorithms
ranges::is_sorted
andranges::is_sorted_until
- #916 algorithms
ranges::min
,ranges::max
,ranges::minmax
,ranges::clamp
,ranges::min_element
,ranges::max_element
, andranges::minmax_element
- #917 algorithms
ranges::lower_bound
,ranges::upper_bound
,ranges::equal_range
, andranges::binary_search
- #918 algorithm
ranges::swap_ranges
- #925 concepts
std::permutable
andstd::sortable
- #930 algorithms
ranges::is_heap
,ranges::is_heap_until
,ranges::make_heap
,ranges::push_heap
,ranges::pop_heap
, andranges::sort_heap
- #941 algorithm
ranges::transform
- #976 algorithms
ranges::is_partitioned
,ranges::partition
,ranges::partition_copy
, andranges::partition_point
- #983 algorithms
ranges::replace
,ranges::replace_copy
, andranges::replace_copy_if
- #984 algorithm
ranges::replace_if
- #1005 algorithms
ranges::remove
,ranges::remove_if
,ranges::remove_copy
, andranges::remove_copy_if
- #1026 algorithm
ranges::copy_backward
- #1028 algorithm
ranges::reverse
(vectorized likestd::reverse
) - #1039 algorithms
ranges::unique
andranges::unique_copy
- #1044 Concept
mergeable
, and algorithmsranges::includes
,ranges::set_difference
,ranges::set_intersection
,ranges::set_symmetric_difference
, andranges::set_union
- #1052 algorithms
ranges::sample
andranges::shuffle
- #1053 algorithm
ranges::move_backward
- #1063 algorithm
ranges::nth_element
- #1073 algorithms
ranges::rotate
andranges::rotate_copy
- #1076 range access function
ranges::ssize
- #1081 algorithm
ranges::lexicographical_compare
- #1083 iterator adaptor
counted_iterator
- #1095 algorithm
ranges::reverse_copy
(vectorized likestd::reverse_copy
) - #1099 algorithms
ranges::next_permutation
andranges::prev_permutation
- #1101 algorithm
ranges::merge
- #1127 algorithm
ranges::sort
- #1132 view
ranges::ref_view
- #1137 algorithm
ranges::uninitialized_move
- #1201 range factories
views::empty
andviews::single
- #1229 range adaptors
views::all
andviews::reverse
- #1231 algorithms
ranges::partial_sort
andranges::partial_sort_copy
- #1245 P1391R4 Range Constructor For
string_view
- #1252 range adaptor
views::filter
- #1253 range adaptors
views::drop
andviews::take
- #1258 range adaptor
views::transform
- #888 algorithm
- P0896R4 Ranges:
- Merged LWG issue resolutions:
- Fixed bugs:
variant
no longer emits warnings about narrowing/sign conversions when determining which alternative should be activated for a given initializer. (Warnings can still be emitted by the chosen initialization; that's intentional and desirable.) #858condition_variable_any
now correctly unlocks-and-relocks the lock argument to timed wait functions when given a non-positive relative timeout or absolute time in the past. #685std::pow
is now templated to handle integral and floating-point types as required by C++11 and later. For example,std::pow(float, int)
previously returnedfloat
and now returnsdouble
. #903- Removed a bogus overload of
ranges::copy_n
that wasn't supposed to exist and wouldn't have compiled. #957 filesystem_error
now transcodes wide characters with no equivalent in the current locale to replacement characters instead of failing and throwingsystem error
. #1010- Fixed
0 <=> partial_ordering::unordered
to return the correct value, and improved<compare>
codegen. #1049 discrete_distribution
no longer yields invalid results when its parameters sum very close to, but not equal to 1. #1025move_iterator::current
is no longer inadvertently aprotected
data member - it has become properlyprivate
and been renamed. #1080- Range algorithms no longer mishandle pointer-to-member predicates and projections when they are larger than
void*
. #1091 - The
slice_array
,gslice_array
,mask_array
, andindirect_array
helpers defined in<valarray>
now have proper copy constructors and copy assignment operators. #988 - Fixed a bug in
ranges::iter_swap
that would cause it to sometimes drop one of the "swapped" values on the floor. #1072 weak_ptr
conversions now preserve control blocks for expired objects. #1104- Fixed
<bit>
'scountl_zero
to correctly use thebsr
instruction as a fallback for old CPUs ...
VS 2019 16.7
- Merged C++20 features:
- P0415R1 #367
constexpr
For<complex>
(Again) - P0476R2 #583
<bit>
bit_cast
- P0586R2 #621 Integer Comparison Functions
- P0674R1 #309
make_shared()
For Arrays - P0718R2 #601
atomic<shared_ptr<T>>
,atomic<weak_ptr<T>>
- P0722R3 #692 Efficient Sized
delete
For Variable Sized Classes (library support types) - P1023R0 #599
constexpr
Forstd::array
Comparisons - P1115R3 #566
erase()
/erase_if()
Returnsize_type
- P1831R1 #634 Deprecating
volatile
In The Standard Library - P1871R1 #607
disable_sized_sentinel_for
; renamesdisable_sized_sentinel
todisable_sized_sentinel_for
. - P1956R1 #524
<bit>
has_single_bit()
,bit_ceil()
,bit_floor()
,bit_width()
- P1976R2 #500 Explicit Constructors For Fixed-Extent
span
From Dynamic-Extent Ranges - P2116R0 #587 Removing
tuple
-Like Protocol Support From Fixed-Extentspan
- P0415R1 #367
- Merged partial C++20 features:
- P0768R1 #515 Library Support For The Spaceship Comparison Operator
<=>
; includeslexicographical_compare_three_way
. - P0784R7 #501 Library Support For More
constexpr
Containers; includesconstruct_at
. - P0896R4 Ranges:
- #385 function objects
ranges::equal_to
,ranges::not_equal_to
,ranges::less
,ranges::less_equal
,ranges::greater
, andranges::greater_equal
- #734
ranges::subrange
andranges::view_interface
- #759 changes to
reverse_iterator
to better adapt C++20 iterators - #787 similar changes to
move_iterator
, implementmove_sentinel
- #815 algorithm
ranges::find_end
- #821 algorithm
ranges::find_first_of
- #822 algorithm
ranges::adjacent_find
- #385 function objects
- P1135R6 The C++20 Synchronization Library; includes
atomic_flag::test
and lock-free integral types. #684 - P1614R2 #385 Adding Spaceship
<=>
To The Library; includes conceptsthree_way_comparable
andthree_way_comparable_with
, type traitcompare_three_way_result
(with_t
variant), and function objectcompare_three_way
.
- P0768R1 #515 Library Support For The Spaceship Comparison Operator
- Merged LWG issue resolutions:
- LWG-3149 #635
DefaultConstructible
should require default initialization - LWG-3255 #506
span
'sarray
constructor is too strict - LWG-3320 #548
span::cbegin/cend
methods produce different results thanstd::[ranges::]cbegin/cend
- LWG-3329 #512
totally_ordered_with
both directly and indirectly requirescommon_reference_with
- LWG-3330 #513 Include
<compare>
from most library headers - LWG-3390 #567
make_move_iterator()
cannot be used to construct amove_iterator
for a move-only iterator
- LWG-3149 #635
- Merged proposed resolutions for LWG issues that were eventually accepted at the November 2020 virtual plenary meeting:
- Fixed bugs:
operator/
andoperator%
forchrono::duration
now properly SFINAE away whencommon_type_t<Rep1, Rep2>
can't be formed. #573<filesystem>
directory_iterator
now properly handles"."
and".."
on network drives. #494<filesystem>
space()
no longer requires read permissions for every directory along the path in some cases, and resolves symbolic links. #552<filesystem>
now considersERROR_BAD_NETPATH
as a "file does not exist" condition. #616filesystem::path::path(const Source&)
is now properly removed from overload resolution whenSource
is a non-iterator with membervalue_type
even in C++20 mode. #631- The CMake release build now correctly uses the compiler flags in
VCLIBS_RELEASE_OPTIONS
. #608 - Enabled the implementation of LWG-2899 in
/clr
mode now that the fix for the compiler bug triggered by such (VSO-1006185) has been released. #417 - Fixed a bug specific to Clang 10 in
<system_error>
and removed the_SILENCE_CLANG_CONCEPTS_MESSAGE
barrier in<concepts>
now that we've worked with Clang developers to ensure Clang 10 and the STL play well together with Concepts enabled. #622 __cpp_lib_int_pow2
is no longer incorrectly defined when the compiler lacks support for the intrinsics necessary to implementhas_single_bit
,bit_ceil
,bit_floor
, andbit_width
. Also,__cpp_lib_bitops
is no longer defined when the compiler is EDG-imitating-MSVC, so IntelliSense properly reflects the non-availability of operations not yet supported by MSVC. #695- Fixed a 43-year-old bug in
boyer_moore_searcher
by implementing a 40-year-old fix. #724 std::function
now handles over-aligned types. #698<cvt/sjis_0208>
now correctly recognizes bad second bytes. #755- Fixed several bugs in
complex
's Sufficient Additional Overloads. #791arg(real)
now behaves likearg(complex)
, instead of always returning0
.conj(real)
now behaves likeconj(complex)
, returning an imaginary part of negative zero.proj(real)
now behaves likeproj(complex)
, mapping negative infinity to positive infinity.conj
andproj
now returncomplex
.norm
now upgrades integers todouble
before squaring, instead of after.
<filesystem>
now consistently handles nonexistent network paths when the Windows API emitsERROR_INVALID_NAME
. #800- Fixed a race condition in the parallel
adjacent_find
algorithm that could cause it to return a result other than the first under heavy load. #816
- Enhanced behavior:
- Strengthened
noexcept
forarray
iterators, also improving the behavior ofspan
construction fromarray
iterators. #627 - Removed a
static_assert
in<atomic>
that prevented certain (completely conforming) usage from compiling until users defined the macro_ENABLE_ATOMIC_ALIGNMENT_FIX
. Note: MSVC's STL has generated correct code for such usage since VS 2015 Update 2, so this change doesn't degrade correctness in any way - it merely removes an annoying compilation roadblock that warned about potential ODR violations when mixing code compiled with ancient toolsets that generated incorrect code for such usage in the first place. #723 - Enabled
bit_cast
for IntelliSense now that front-end support is available. #733 complex
'sreal(T)
andimag(T)
setters now properly returnvoid
. #367- Fixed Clang warnings in STL headers (when they aren't suppressed by Clang's treatment of "system headers") and enhanced test coverage to remain clean. #755
- We now detect compiler support for
consteval
by testing__cpp_consteval
. [#765](https://github.c...
- Strengthened
VS 2019 16.6
- Merged C++20 features:
- P0122R7 #142 #474
<span>
- P1024R3 Enhancing
span
Usability - P1085R2 Removing
span
Comparisons - P1227R2 Unsigned
span::size()
- P1394R4 Range Constructor For
span
- P1872R0
span
Should Havesize_type
, Notindex_type
- LWG-3101
span
'sContainer
constructors need another constraint - LWG-3102 Clarify
span
iterator
andconst_iterator
behavior - LWG-3103 Errors in taking subview of
span
should be ill-formed where possible - LWG-3144
span
does not have aconst_pointer
typedef - LWG-3198 Bad constraint on
std::span::span()
- LWG-3274 Missing feature test macro for
<span>
- LWG-3369
span
's deduction-guide for built-in arrays doesn't work
- P1024R3 Enhancing
- P0202R3 #425
constexpr
For<algorithm>
Andexchange()
- LWG-3256 Feature testing macro for
constexpr
algorithms
- LWG-3256 Feature testing macro for
- P0357R3 #393 Supporting Incomplete Types In
reference_wrapper
- P0619R4 #380 Removing C++17-Deprecated Features In C++20
- P0879R0 #425
constexpr
For Swapping Functions - P0883R2 #390 Fixing Atomic Initialization
- P0935R0 #415 Eradicating Unnecessarily Explicit Default Constructors
- P1006R1 #397
constexpr
Forpointer_traits<T*>::pointer_to()
- P1165R1 #467 Consistently Propagating Stateful Allocators In
basic_string
'soperator+()
- P1423R3 #470
char8_t
Backward Compatibility Remediation - P1645R1 #399
constexpr
For<numeric>
Algorithms - P1964R2 #565 Replacing
boolean
Withboolean-testable
- P2091R0 #565 Fixing Issues With Range Access CPOs
- P2102R0 #565 Making "Implicit Expression Variations" More Explicit
- P0122R7 #142 #474
- Merged partial C++20 features:
- P0768R1 Library Support For The Spaceship Comparison Operator
<=>
- #402 Deprecated
std::rel_ops
.
- #402 Deprecated
- P0896R4 Ranges:
- #389 some Ranges concepts, including P1456R1 Move-Only Views and P1870R1
safe_range
. - #432 P2091R0 Issues With Range Access CPOs.
- #565 algorithms
ranges::all_of
,ranges::any_of
,ranges::copy
,ranges::copy_if
,ranges::copy_n
,ranges::count
,ranges::count_if
,ranges::equal
,ranges::find
,ranges::find_if
,ranges::find_if_not
,ranges::for_each
,ranges::for_each_n
,ranges::mismatch
, andranges::none_of
. - #589 changes to
std::back_insert_iterator
,std::front_insert_iterator
, andstd::insert_iterator
necessary to model the Ranges iterator concepts.
- #389 some Ranges concepts, including P1456R1 Move-Only Views and P1870R1
- P0768R1 Library Support For The Spaceship Comparison Operator
- Merged LWG issue resolutions:
- Added test suites (not yet running):
- Fixed bugs:
complex
acos()
,acosh()
, andasinh()
now return correct results. #401complex
pow()
is now overloaded correctly. #383- Fixed
std::filesystem::remove()
on ReFS. #407 - Avoided using
iter[idx]
in all algorithms, because it's problematic with some unusual but Standard-conforming iterators. #464 <system_error>
now mapsERROR_BROKEN_PIPE
toerrc::broken_pipe
. #406- Fixed a compiler error when compiling with the Intel C++ Compiler, because it hadn't implemented C++20 conditional
explicit
in C++14/17 mode. #424- Note: The Intel C++ Compiler remains unsupported by MSVC.
- Fixed the visualizers for
atomic
andatomic_flag
. #315
- Improved performance:
- Improved throughput:
- Significantly improved compile times for
<iterator>
and<array>
. Note that this is a source-breaking change for user code that expected STL headers to include other headers in certain ways. #355
- Significantly improved compile times for
- Code cleanups:
src/syserror.cpp
now uses range-for andstatic_cast
. #481- Changed macro constants to
constexpr
variables. #487 - Cleaned up the implementation of
sort()
. #449 - Added
static_assert
is_sorted()
for lookup tables. #451 - Removed compiler workarounds. #410 #452 #453 #454
- Added compiler workarounds. #475
- Updated the STL's required compiler to MSVC 19.25. #430
- Enabled clang-format for slightly more code. #458
- Infrastructure improvements:
- Updated
_MSVC_STL_UPDATE
. #429 #486
VS 2019 16.5
- Hello, world!
- Announced this repo at CppCon 2019.
- Added initial documentation: readme, license, and roadmap.
- Added initial CMake build scripts for Desktop-only msvcp. #5 #80 #98 #101
- Investigated continuous integration options, like GitHub Actions or Azure Pipelines. (Chose Azure Pipelines.)
- Automated builds running in PRs. #114
- Investigated test harness solutions, either building our own to more closely match the internal system in a reasonable way, or using libcxx's
lit
. (Chose to uselit
.) - Began auditing test case source files from the
std
andtr1
test suites. - Implemented Custom Autolinks in this repo.
- Merged C++20 features:
- P0325R4 #135
to_array()
- P0340R3 #284 SFINAE-Friendly
underlying_type
- P0356R5 #158
bind_front()
- P0439R0 #124
enum class memory_order
- P0553R4 #310
<bit>
Rotating And Counting Functions - P0556R3 #310
<bit>
ispow2()
,ceil2()
,floor2()
,log2p1()
bit_length()
- P1355R2 Narrow Contract For
ceil2()
- P1355R2 Narrow Contract For
- P0595R2 #353
is_constant_evaluated()
- P0631R8 #261
<numbers>
Math Constants - P0655R1 #201
visit<R>()
- P0738R2 #246
istream_iterator
Cleanup - P0767R1 #179 Deprecating
is_pod
- P0966R1 #176
string::reserve()
Should Not Shrink - P1209R0 #236
erase_if()
,erase()
- P1227R2 #130 Signed
std::ssize()
- P1357R1 #127
is_bounded_array
,is_unbounded_array
- P1612R1 #305 Relocating
endian
To<bit>
- P1690R1 #341 Refining Heterogeneous Lookup For Unordered Containers
- P1902R1 #287 #353 Missing Feature-Test Macros 2017-2019
- P1959R0 #381 Removing
weak_equality
Andstrong_equality
- P0325R4 #135
- Merged partial C++20 features:
- Merged LWG issue resolutions:
- LWG-2899 #193
is_(nothrow_)move_constructible
andtuple
,optional
, andunique_ptr
- LWG-3158 #195
tuple(allocator_arg_t, const Alloc&)
should be conditionally explicit - LWG-3199 #353
istream >> bitset<0>
fails - LWG-3257 #353 Missing feature testing macro update from P0858
- LWG-3266 #353
to_chars(bool)
should be deleted
- LWG-2899 #193
- Merged proposed resolutions for LWG issues (not yet accepted for the C++ Working Draft, but we've chosen to implement this speculatively):
- Fixed bugs:
- Restored
swap(unique_ptr&, unique_ptr&)
which was mistakenly removed. #170 - When erasing an empty range in a
vector
, avoided self-move-assigning all elements. #228 - Removed a
noexcept
that was incorrectly applied to an allocating helper function inlist
. #77 valarray
now uses argument-dependent lookup when callingsin()
,cos()
,pow()
,sqrt()
, etc. as required by the Standard. #286- Fixed
<filesystem>
linker errors for UWP developers. #356 - Changed the return type of
locale
's assignment operator toconst locale&
as (perhaps surprisingly) required by the Standard. #324 - Fixed
regex_token_iterator
to return correct results. #131 - Non-member
begin()
andend()
now takebasic_string_view
by value as required by the Standard. #119 - Fixed
list::splice()
to work correctly when splicing exactly half of onelist
into another. #129
- Restored
- Improved performance:
- Fixed a codegen size regression in
atomic<integral>
andatomic<pointer>
. #227 - Activated x64 FrameHandler4 exception handling, reducing the size of
msvcp140.dll
from 588 KB to 528 KB. #154 - Reduced the stack space consumption of
list
andforward_list
insertion. #366 - Improved the performance of 64-bit
atomic
loads on x86. #87
- Fixed a codegen size regression in
- Improved throughput:
- Used
if constexpr
instead of tag dispatch in<any>
. #173
- Used
- Enhanced behavior:
- Improved the error message for
function<Ret (Args) noexcept>
. #350 any
now supports over-aligned types. #173- Improved the messages that are emitted when including newer headers in older Standard modes. #252
- Strengthened
noexcept
forexchange()
. #364 std::function
now avoids usingtypeid(void)
in our_HAS_STATIC_RTTI=0
mode, for compatibility with Clang's-fno-rtti
mode. #375- Added an error message explaining that the
<experimental/coroutine>
,<experimental/generator>
, and<experimental/resumable>
headers aren't supported with Clang. #136
- Improved the error message for
- Code cleanups:
- Removed unnecessary
public
keywords instruct
inheritance. #219 - Used
iter[idx]
for clarity in<algorithm>
. #289 (Note that this was reverted in VS 2019 16.6 by #464.) - Fixed typos in comments and error messages. #96
- Marked more
virtual
member functions asoverride
. #302 - Fused files together. #220 #374
- Consistently used the modern
int = 0
SFINAE technique. #226 #244 #328 - Removed compiler bug workarounds. #175 #301 #372
- Various cleanups (described in detail in the PRs, not repeated here). #168 #221 #269 #320 #373
- Removed unnecessary
- Improved documentation:
- Added a comment explaining part of
invoke()
's implementation. #368
- Added a comment explaining part of
- Infrastructure improvements:
- Added clang-format validation. #132 #163 #255
- Added more code format validation. [#229](https://github.com/micro...
VS 2019 16.10
- The STL is C++20 feature complete.
- Merged C++20 features:
- P0053R7 #1564
<syncstream>
- P0753R2
osyncstream
Manipulators
- P0753R2
- P0355R7
<chrono>
Calendars And Time Zones:- #323 implemented calendars.
- #1789 implemented new clocks, leap seconds, time zones, and parsing.
- #1870 implemented
<chrono>
'sformat()
support (viaformatter
specializations) and remainingoperator<<()
overloads, completing this feature. - While the STL generally provides all features on all supported versions of Windows, leap seconds and time zones (which change over time) require OS support that was added to Windows 10. Specifically, updating the leap second database requires Windows 10 version 1809 or later, and time zones require
icu.dll
which is provided by Windows 10 version 1903/19H1 or later. This applies to both client and server OSes; note that Windows Server 2019 is based on Windows 10 version 1809.
- P0408R7 #919 Efficient Access To
basic_stringbuf
's Buffer - P0466R5 #1575 Layout-Compatibility And Pointer-Interconvertibility Traits
- Initially supported for MSVC only; will be supported for Clang after LLVM-48860 is resolved.
- P0475R1 #1668 Guaranteed Copy Elision For Piecewise Construction
- P0591R4 #1668 Utility Functions For Uses-Allocator Construction
- P0608R3 #1629 Improving
variant
's Converting Constructor/Assignment - P0645R10 #1821 #1834 #1803 #1853 #1862 #1867 #1851 #1875
<format>
Text Formatting - P0784R7 #1369 #1546 Library Support For More
constexpr
Containers - P0896R4 Ranges, completed with the final PRs:
- P0980R1 #1502
constexpr
std::string
- Initially supported for MSVC only; will be supported for Clang after LLVM-48606 is resolved.
- P1004R2 #1407 #1690 #1698
constexpr
std::vector
- Initially supported for MSVC only; see note for
constexpr
std::string
.
- Initially supported for MSVC only; see note for
- P1208R6 #664
<source_location>
- Initially supported for MSVC only; will be supported for Clang after it implements
consteval
(see Clang's C++20 status).
- Initially supported for MSVC only; will be supported for Clang after it implements
- P1502R1 #1567 #1692 Standard Library Header Units
- Initially supported for MSVC only; will be supported for Clang after it implements C++20 modules (see Clang's C++20 status).
- P1614R2 #1602 #1678 Adding Spaceship
<=>
To The Library
- P0053R7 #1564
- Merged LWG issue resolutions:
- Fixed bugs:
- Fixed regex character class behavior with
regex::icase
. #1503 - Fixed compiler errors when calling
std::equal()
with user-defined contiguous iterators. #1527 - Fixed
boolalpha
extraction to be case-sensitive again. #1543 #1570 (This was a regression in VS 2019 16.8 caused by #1168.) - Fixed a compiler error when calling
std::fill()
withvolatile byte*
. #1557 - Fixed
ranges::unique
to correctly handle inputs that are already unique. #1561 - Fixed compiler errors, specific to Clang targeting ARM64, in
<atomic>
and<bit>
, related to compiler intrinsics. #1505 - Fixed C++20 mode to remove old
std::allocator
members that were deprecated in C++17. (As usual, fine-grained and coarse-grained escape hatches are available for this removal.) #1585 - Fixed an inaccurate approximation in
binomial_distribution
. #1531 - Fixed incorrect
min
/max
values for several<random>
distributions. #1601 - Fixed incorrect behavior in
gamma_distribution::param_type::operator==
. #1601 - Fixed a regression in VS 2019 16.6 caused by #423, where
__declspec(dllexport)
ing a class derived fromunordered_map
orunordered_set
would fail to compile with astatic_assert
. #1639 - Fixed compiler errors in
ranges::uninitialized_copy
,ranges::uninitialized_copy_n
,ranges::uninitialized_move
, andranges::uninitialized_move_n
when attempting to usememcpy
for efficiency. #1548 - Fixed incorrect behavior in
ranges::uninitialized_value_construct
andranges::uninitialized_value_construct_n
when attempting to usememset
for efficiency. #1700 - Fixed
year_month_day_last::day()
to return a valid-but-unspecified value for!ok()
dates, as required by the Standard. #1663 - Fixed a regression in VS 2019 16.7 caused by #309, where
<memory>
would fail to compile with/std:c++latest
/Zc:alignedNew-
. #1689 - Fixed incorrect behavior in
get_time()
. #1620- Format specifications without delimiters are now correctly handled, even when a field is all-zero. For example,
"19700405T000006"
can now be parsed with"%Y%m%dT%H%M%S"
. - Literal matching (outside of
'%'
conversion specifications) is now case-insensitive. - If the stream ends during literal matching,
ios_base::eofbit | ios_base::failbit
is now set. - Incomplete conversion specifications (e.g.
'%'
appearing as the last character of a format specification) now result inios_base::failbit
instead of literal matching. - The seconds field now permits
60
to handle leap seconds.
- Format specifications without delimiters are now correctly handled, even when a field is all-zero. For example,
- Fixed compiler errors in
ranges::uninitialized_copy
andranges::uninitialized_move
when attempting to usememcpy
for efficiency. #1713 - Fixed compiler errors where the
ranges::uninitialized_meow()
algorithms assumed that<algorithm>
was included; now they can be called after including only<memory>
. #1832 - Fixed an off-by-default truncation warning in
<complex>
(warning C5219: implicit conversion from'const int'
to'const float'
, possible loss of data). [#1722](https://github.com/...
- Fixed regex character class behavior with