Since commit 2ec243 (28/10) cmake builds defaults apparently to --std=c++17.

Building with Xcode (11.3) on macos (10.14.6) then fails with message "call to 'make_unique' is ambiguous"

make_unique() is in lyx/.../support/unique_ptr.h and in Xcode.app/.../memory

This is the full error message:

.../lyx-22-qt5/src/graphics/GraphicsCacheItem.cpp:445:15: error: call to 'make_unique' is ambiguous
         converter_ = make_unique<Converter>(doc_file_, filename,
                      ^~~~~~~~~~~~~~~~~~~~~~
In file included from .../lyx-22-qt5/src/graphics/GraphicsCacheItem.cpp:15:
 In file included from .../lyx-22-qt5/src/graphics/GraphicsCacheItem.h:31:
 In file included from .../lyx-22-qt5/src/graphics/GraphicsTypes.h:18:
 In file included from .../lyx-22-qt5/src/support/strfwd.h:42:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:505: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:176: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57: In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:644:

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/memory:3130:1: note: candidate function [with _Tp = lyx::graphics::Converter, _Args = <const lyx::support::FileName &, lyx::support::FileName &, std::__1::basic_string<char>, std::__1::basic_string<char> &, std::__1::basic_string<char> &>]
 make_unique(_Args&&... __args)
 ^
In file included from .../lyx-22-qt5/src/graphics/GraphicsCacheItem.cpp:17:
 In file included from .../lyx-22-qt5/src/Buffer.h:17:
.../lyx-22-qt5/src/support/unique_ptr.h:55:1: note: candidate function [with T = lyx::graphics::Converter, Args = <const lyx::support::FileName &, lyx::support::FileName &, std::__1::basic_string<char>, std::__1::basic_string<char> &, std::__1::basic_string<char> &>]
 make_unique(Args&&... args) {
 ^
 1 error generated.

Regards,

P. De Visschere

--
lyx-devel mailing list
lyx-devel@lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel

Reply via email to