I can build OpenColorio iconvert but when I add OIIO and OCIO code to
my x64 console app,
I get a build error
\vcpkg\installed\x64-windows\include\OpenImageIO\platform.h(448,23):
 error C2760: syntax error: unexpected token 'identifier', expected
'type specifier'

In OIIO platform.h line 448, col 23, the error-cursor is pointed at
the second 'ptr' item on the line:

// basic wrappers to new/delete over-aligned types since this isn't
guaranteed to be supported until C++17
template <typename T, class... Args>
inline T* aligned_new(Args&&... args) {
    static_assert(alignof(T) > alignof(void*), "Type doesn't seem to
be over-aligned, aligned_new is not required");
    void* ptr = aligned_malloc(sizeof(T), alignof(T));
    return ptr ? new (ptr) T(std::forward<Args>(args)...) : nullptr;
// line 448 col 23
}
Is this familiar to anyone?
Could it be a compiler VERSION issue:
- we have c++ 17, as Microsoft Visual Studio Professional 2019 Version 16.5.2

Best health wishes to all
Simon A

Simon R Ashby
3, Waters Meet
Huntingdon
Cambridgeshire
PE29 3AY
+44(0)7775-815561 mobile
sra.luma...@gmail.com
_______________________________________________
Oiio-dev mailing list
Oiio-dev@lists.openimageio.org
http://lists.openimageio.org/listinfo.cgi/oiio-dev-openimageio.org

Reply via email to