Commit 76451af
authored
fmath.h: re-inline convert_type() half varieties (#5130)
A few years ago, in PR #3301, we made a big effort to remove Imath types
as much as possible from the public APIs. Somehow, as part of that
refactor, we ended up with just the half-varieties of fmath.h's
convert_types() templates actually being implemented in fmath.cpp and
only declared (by default) in fmath.h. I'm honestly not sure why I did
that now, and the PR doesn't explain that particular point.
But that sets up a potential link incompatibility if OIIO used a
different release of Imath than the use is using when calling that
utility function.
So this PR makes it fully inline again, so the Imath version the
downstream package uses just doesn't need to match what was found/used
at the time that OIIO was built.
Signed-off-by: Larry Gritz <lg@larrygritz.com>1 parent 235e364 commit 76451af
3 files changed
Lines changed: 6 additions & 30 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
911 | 911 | | |
912 | 912 | | |
913 | 913 | | |
| 914 | + | |
914 | 915 | | |
915 | | - | |
916 | | - | |
917 | | - | |
918 | | - | |
919 | | - | |
920 | | - | |
921 | | - | |
922 | | - | |
923 | | - | |
924 | | - | |
925 | | - | |
926 | | - | |
927 | | - | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
928 | 919 | | |
929 | 920 | | |
930 | 921 | | |
| |||
944 | 935 | | |
945 | 936 | | |
946 | 937 | | |
947 | | - | |
| 938 | + | |
948 | 939 | | |
949 | 940 | | |
950 | 941 | | |
| |||
964 | 955 | | |
965 | 956 | | |
966 | 957 | | |
967 | | - | |
968 | 958 | | |
969 | 959 | | |
970 | 960 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | 18 | | |
22 | 19 | | |
23 | 20 | | |
| |||
This file was deleted.
0 commit comments