[LyX/master] C++11 compilation fix

Jürgen Spitzmüller jspitzm at gmail.com
Thu Dec 8 06:55:42 UTC 2022


Am Mittwoch, dem 07.12.2022 um 18:43 +0100 schrieb Jean-Marc
Lasgouttes:
> It is not easier. The only thing that is easier before C++17 is 
> std::make_pair. See good discussion here:
> https://stackoverflow.com/questions/9270563/what-is-the-purpose-of-stdmake-pair-vs-the-constructor-of-stdpair
> 
> I like the curly braces notation, since it allows to initialize
> vectors too.
> 
> There is also the notation
>         MyClass p{12};
> which is mysterious to me.

OK, I think I was confused here anyway.

-- 
Jürgen


More information about the lyx-devel mailing list