Skip to content

[WIP] Fix compilation error in FunctionTraits.h for C++14#1

Closed
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-compilation-error-functiontraits
Closed

[WIP] Fix compilation error in FunctionTraits.h for C++14#1
Copilot wants to merge 1 commit intomasterfrom
copilot/fix-compilation-error-functiontraits

Conversation

Copy link

Copilot AI commented Feb 14, 2026

Fix C++14 compilation error in FunctionTraits.h

Problem

  • In C++14, noexcept is not part of the function type system
  • In C++17+, noexcept became part of the function type
  • Current code defines specializations for both noexcept and non-noexcept versions
  • In C++14, these are the same type, causing redefinition errors

Plan

  • Wrap noexcept specializations with C++17 version check (#if __cplusplus >= 201703L)
  • Test compilation with C++14 standard
  • Verify existing tests still pass
  • Run code review and security checks
Original prompt

用户在 include\YY\Base\Functional\FunctionTraits.h 中遇到编译错误,需要处理该文件的实现,使其在 C++14 标准下可以正常编译。

Issue created by Visual Studio Copilot


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot stopped work on behalf of mingkuang-Chuyu due to an error February 14, 2026 05:15
@mingkuang-Chuyu mingkuang-Chuyu deleted the copilot/fix-compilation-error-functiontraits branch February 14, 2026 14:03
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