PixarAnimationStudios / OpenUSD

Universal Scene Description
http://www.openusd.org
Other
6.14k stars 1.22k forks source link

Support `/permissive-` strict standard conformance for MSVC compiler #2340

Open CraigHutchinson opened 1 year ago

CraigHutchinson commented 1 year ago

Description of Issue

USD fails to compile when strict standard-conformance under MSVC is enabled https://learn.microsoft.com/en-us/cpp/build/reference/permissive-standards-conformance?view=msvc-170 stb_image.h(4553): error C5208: unnamed class used in typedef

Steps to Reproduce

  1. add /permissive- to MSVC commandline or via CMake:
    add_compile_options("$<$<COMPILE_LANG_AND_ID:CXX,MSVC>:/permissive->")

System Information (OS, Hardware)

Windows, MSVC (VC2022 17.6.0 Preview 2)

Build Flags

/permissive-

tallytalwar commented 1 year ago

Filed as internal issue #USD-8128