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

Deal with deprecated bit_cast function in OIIO 2.5 #1569

Merged
merged 1 commit into from
Sep 1, 2022

Conversation

lgritz
Copy link
Collaborator

@lgritz lgritz commented Sep 1, 2022

Today's branching of OIIO 2.4 and subsequent changing of its master
branch to think it's "2.5" seems to have triggered an automatic fuse
that annotates a particular function in OIIO as deprecated for version
2.5 and beyond. OSL was still calling the old version, so some
immediate changes are necessary to call the correct new name when
using a new OIIO.

Signed-off-by: Larry Gritz [email protected]

Today's branching of OIIO 2.4 and subsequent changing of its master
branch to think it's "2.5" seems to have triggered an automatic fuse
that annotates a particular function in OIIO as deprecated for version
2.5 and beyond. OSL was still calling the old version, so some
immediate changes are necessary to call the correct new name when
using a new OIIO.

Signed-off-by: Larry Gritz <[email protected]>
Copy link
Contributor

@fpsunflower fpsunflower left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just curious why the function was renamed from bit_cast to bitcast? The C++20 version is bit_cast.

@fpsunflower
Copy link
Contributor

Oh nevermind - I dug up the OIIO PR, I forgot about the argument ordering difference 😅

@lgritz
Copy link
Collaborator Author

lgritz commented Sep 1, 2022

Yeah, seemed like having the identically named function with opposite template argument order was bound to be trouble, so I'm trying to deprecate and phase ours out before anybody is using C++20 too widely.

@lgritz lgritz merged commit e278f4c into AcademySoftwareFoundation:main Sep 1, 2022
@lgritz lgritz deleted the lg-oiio25 branch September 1, 2022 22:42
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Sep 1, 2022
…undation#1569)

Today's branching of OIIO 2.4 and subsequent changing of its master
branch to think it's "2.5" seems to have triggered an automatic fuse
that annotates a particular function in OIIO as deprecated for version
2.5 and beyond. OSL was still calling the old version, so some
immediate changes are necessary to call the correct new name when
using a new OIIO.

Signed-off-by: Larry Gritz <[email protected]>
lgritz added a commit to lgritz/OpenShadingLanguage that referenced this pull request Sep 1, 2022
…undation#1569)

Today's branching of OIIO 2.4 and subsequent changing of its master
branch to think it's "2.5" seems to have triggered an automatic fuse
that annotates a particular function in OIIO as deprecated for version
2.5 and beyond. OSL was still calling the old version, so some
immediate changes are necessary to call the correct new name when
using a new OIIO.

Signed-off-by: Larry Gritz <[email protected]>
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