Skip to content

Conversation

@SekaiArendelle
Copy link

  • a week ago, MacroModel want to merge a huge pr, which edited here I have no idea why he did this change, or simply a bug-scanner ai reported this "problem"
    • Following error messages just to prove why this patch exists:

In file included from ..\include/fast_io/fast_io.h:10: In file included from ..\include/fast_io/fast_io_hosted.h:69: In file included from ..\include/fast_io/fast_io_hosted/platforms/native.h:3: In file included from ..\include/fast_io/fast_io_hosted/platforms/native_base.h:27: In file included from ..\include/fast_io/fast_io_hosted/platforms/posix.h:46: ..\include/fast_io/fast_io_hosted/platforms/systemcall_details.h:34:3: error: no member named 'dup' in the global namespace; did you mean simply 'dup'?
34 | ::dup
| ^~~~~
| dup
..\include/fast_io/fast_io_hosted/platforms/systemcall_details.h:11:12: note: 'dup' declared here
11 | inline int dup(int) noexcept
| ^
1 error generated.

- a week ago, MacroModel want to merge a huge pr, which edited here
  I have no idea why he did this change, or simply a bug-scanner ai reported this "problem"
  - Following error messages just to prove why this patch exists:

In file included from ..\include/fast_io/fast_io.h:10:
In file included from ..\include/fast_io/fast_io_hosted.h:69:
In file included from ..\include/fast_io/fast_io_hosted/platforms/native.h:3:
In file included from ..\include/fast_io/fast_io_hosted/platforms/native_base.h:27:
In file included from ..\include/fast_io/fast_io_hosted/platforms/posix.h:46:
..\include/fast_io/fast_io_hosted/platforms/systemcall_details.h:34:3: error: no member named 'dup' in the global namespace; did you mean simply 'dup'?
   34 |                 ::dup
      |                 ^~~~~
      |                 dup
..\include/fast_io/fast_io_hosted/platforms/systemcall_details.h:11:12: note: 'dup' declared here
   11 | inline int dup(int) noexcept
      |            ^
1 error generated.
@SekaiArendelle
Copy link
Author

@trcrsired review plz

@MacroModel MacroModel mentioned this pull request Nov 24, 2025
@MacroModel
Copy link
Collaborator

MacroModel commented Nov 24, 2025

这个dup的本意是用全局函数,而非已有的fast_io::details::dup 已经是noexcept的符号函数。_dup还是得全局的

@SekaiArendelle
Copy link
Author

这个的本意是用全局函数,而非已有的fast_io::details::dup 已经是noexcept的符号函数

但是编译也没通过啊,而且下面的都没有加上::从全局进行调用

@MacroModel
Copy link
Collaborator

这个的本意是用全局函数,而非已有的fast_io::details::dup 已经是noexcept的符号函数

但是编译也没通过啊,而且下面的都没有加上::从全局进行调用

我改了个新的

@MacroModel
Copy link
Collaborator

MacroModel commented Nov 24, 2025

这个的本意是用全局函数,而非已有的fast_io::details::dup 已经是noexcept的符号函数

但是编译也没通过啊,而且下面的都没有加上::从全局进行调用

因为你这么改也不对,相当于noexcept call 已有的 自定义extern noexcept符号,(dos环境)

@SekaiArendelle
Copy link
Author

这个的本意是用全局函数,而非已有的fast_io::details::dup 已经是noexcept的符号函数

但是编译也没通过啊,而且下面的都没有加上::从全局进行调用

因为你这么改也不对,相当于noexcept call 已有的 自定义extern noexcept符号,(dos环境)

我是在交叉到wasip1的时候出的问题,你的patch也没解决这个问题

@SekaiArendelle
Copy link
Author

行,@MacroModel 确实修掉了,那我就关闭这个pr了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants