Skip to content

Commit 155b9d5

Browse files
committed
no {}
Created using spr 1.3.4
1 parent 6a98752 commit 155b9d5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

libcxx/src/iostream.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ union stream_data {
4848
# define STREAM(StreamT, BufferT, CharT, var) \
4949
STRING_DATA_CONSTINIT stream_data<StreamT<CharT>, BufferT<CharT>> var __asm__( \
5050
"?" #var "@" ABI_NAMESPACE_STR "@std@@3V?$" #StreamT \
51-
"@" CHAR_MANGLING(CharT) "U?$char_traits@" CHAR_MANGLING(CharT) "@" ABI_NAMESPACE_STR "@std@@@12@A") var = {}
51+
"@" CHAR_MANGLING(CharT) "U?$char_traits@" CHAR_MANGLING(CharT) "@" ABI_NAMESPACE_STR "@std@@@12@A") var
5252
#else
53-
# define STREAM(StreamT, BufferT, CharT, var) \
54-
STRING_DATA_CONSTINIT stream_data<StreamT<CharT>, BufferT<CharT>> var = {}
53+
# define STREAM(StreamT, BufferT, CharT, var) STRING_DATA_CONSTINIT stream_data<StreamT<CharT>, BufferT<CharT>> var
5554
#endif
5655

5756
// These definitions and the declarations in <iostream> technically cause ODR violations, since they have different

0 commit comments

Comments
 (0)