Skip to content

MSVC 14.37 has compilation issue when building lmfAttribute.cpp #333

@SydianAndrewChen

Description

@SydianAndrewChen

I am trying to build from scratch and msvc reported an error when building ImfAttribute.cpp that error C2039: 'binary_function': is not a member of 'std'. @zhiyi1801 cross examined with me and his code using msvc 14.29 is fine. Later I found out that I need to add #include <functional> explicitly in ImfAttribute.cpp to compile successfully. In @zhiyi1801's case class binary_function is defined in xstdef.h.

Tested on Windows 10 | MSVC 14.37.32822 | Visual Studio 2022 | CMake 3.27

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions