office-gobmx/embedserv
Stephan Bergmann 48ab06d962 Avoid C++20 comparison operator overloading ambiguities (clang-cl -std=c++2a)
The main problem was the non-explicit inprocserv::ComSmart<T>::operator T*()
that caused ambiguities between inprocserv::ComSmart<T>::operator ==(const T*)
and the built-in operator == taking two (cv-qualified) T*.

Many uses of that non-explicit conversion operator could be covered by an
explicit bool conversion operator, but some needed the introduction of a get()
function.

Also, one of the operator == was used by the C++20 overload resolution in a way
that it now needs to return bool.  (And the other functions returning BOOL could
be cleaned up, too.)

Change-Id: I8065f0955a60207c2bd6d8e583d13bc15f324f38
Reviewed-on: https://gerrit.libreoffice.org/82273
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
2019-11-08 15:39:15 +01:00
..
source Avoid C++20 comparison operator overloading ambiguities (clang-cl -std=c++2a) 2019-11-08 15:39:15 +01:00
util
Library_emser.mk
Library_inprocserv.mk
Makefile
Module_embedserv.mk
README

To embed LibreOffice via OLE2.