Skip to content

Commit 73f1bfa

Browse files
committed
prevent shadowing for char_type_const_ptr
1 parent e8c4322 commit 73f1bfa

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

  • include/fast_io_core_impl/operations/writeimpl

include/fast_io_core_impl/operations/writeimpl/basis.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -427,11 +427,6 @@ inline constexpr void write_all_bytes_cold_impl(outstmtype outsm, ::std::byte co
427427
::fast_io::operations::decay::defines::has_scatter_write_some_overflow_define<outstmtype> ||
428428
::fast_io::operations::decay::defines::has_scatter_write_all_overflow_define<outstmtype>))
429429
{
430-
using char_type_const_ptr
431-
#if __has_cpp_attribute(__gnu__::__may_alias__)
432-
[[__gnu__::__may_alias__]]
433-
#endif
434-
= char_type const *;
435430
char_type_const_ptr firstcptr{reinterpret_cast<char_type_const_ptr>(first)};
436431
char_type_const_ptr lastcptr{reinterpret_cast<char_type_const_ptr>(last)};
437432
::fast_io::details::write_all_cold_impl(outsm, firstcptr, lastcptr);
@@ -454,11 +449,6 @@ inline constexpr void write_all_bytes_cold_impl(outstmtype outsm, ::std::byte co
454449
::fast_io::operations::decay::defines::has_pwrite_some_overflow_define<outstmtype> ||
455450
::fast_io::operations::decay::defines::has_scatter_pwrite_some_overflow_define<outstmtype>))
456451
{
457-
using char_type_const_ptr
458-
#if __has_cpp_attribute(__gnu__::__may_alias__)
459-
[[__gnu__::__may_alias__]]
460-
#endif
461-
= char_type const *;
462452
char_type_const_ptr firstcptr{reinterpret_cast<char_type_const_ptr>(first)};
463453
char_type_const_ptr lastcptr{reinterpret_cast<char_type_const_ptr>(last)};
464454
::fast_io::details::pwrite_all_cold_impl(outsm, firstcptr, lastcptr);

0 commit comments

Comments
 (0)