Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

te::call compile error under windows environment #45

Open
zyzyz opened this issue Sep 10, 2024 · 0 comments
Open

te::call compile error under windows environment #45

zyzyz opened this issue Sep 10, 2024 · 0 comments

Comments

@zyzyz
Copy link

zyzyz commented Sep 10, 2024

Expected Behavior

te.hpp file compiles in a project using Windows SDK

Actual Behavior

te::call has a compile error

struct Drawable : te::poly<Drawable> {
    using te::poly<Drawable>::poly;

    void draw(std::ostream &out) const {
        te::call([](auto const &self, auto &out) { self.draw(out); }, *this, out);
                                                                             ~~~
    }
};
constexpr auto call(
  const TExpr expr,
  const I &interface,
           ~~~~~~~~~
  Ts &&... args)
{...}

argument interface is recognized as macro defined in combaseapi.h, changing to other naming compiles.

Adjusting including order or using precompiled header might help, but considering interface is a common keyword, it is expected to change the argument naming for better compatibility.

Specifications

  • Version: Visual Studio 2022 (v143), /std:c++20, /std:c17
  • Platform: Windows
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

No branches or pull requests

1 participant