Date: prev next · Thread: first prev next last
2020 Archives by date, by thread · List index


Hi Stephan, *

2020年5月14日(木) 22:37 Stephan Bergmann <sbergman@redhat.com>:

On 14/05/2020 12:40, Naruhiko Ogasawara wrote:
--------------------------
static const std::map<LanguageType, std::array<sal_uInt8, 4>> tblDBNumToNatNum
     = { { primary(LANGUAGE_CHINESE),    { 4, 5, 6, 0 } },
         { primary(LANGUAGE_JAPANESE),   { 4, 5, 3, 0 } },
         { primary(LANGUAGE_KOREAN),     { 1, 2, 3, 9 } } };
--------------------------

The compiler claimed:
--------------------------
Error (active) E0289 no instance of constructor "std::map<_Kty, _Ty,
_Pr, _Alloc>::map [with _Kty=LanguageType, _Ty=std::array<sal_uInt8,
4U>, _Pr=std::less<LanguageType>,
_Alloc=std::allocator<std::pair<const LanguageType,
std::array<sal_uInt8, 4U>>>]" matches the argument list
--------------------------

There should be no reason that that does not work.  Probably an issue
with whatever specific compiler you are using?


I'm not sure but I'm using latest LODE in Windows 10, with Visual Studio
Community 2019 V16.5.5, with MSVC v142 + Clang 9.0.0.
And my build has branched from master:
0b81aaa36b5b78e208c5cc2cd36b4906b8d636a6

Best regards,
-- 
Naruhiko NARU Ogasawara (naruoga@gmail.com)

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.