Latte : make_unique for gcc <=4.8

Michail Vourlakos mvourlakos at
Sun Nov 5 15:12:56 GMT 2017

Hello everyone,

during the review phase in Latte we removed the following code in case it
would conflict in some cases:

#if __GLIBCXX__ <= 20150623
namespace std {
template<class T, class... Args>
unique_ptr<T> make_unique(Args &&... args)
    return std::unique_ptr<T>(new T(std::forward<Args>(args)...));

this was needed for gcc versions that even though they are C++14 compatible
they dont offer make_unique function. By removing that code we broke
compatibility with openSUSE Leap that uses gcc 4.8.5 ... so in order to
build latte packages a made a patch to readd that code.

Do you know any better way to handle this?


BTW: for every e-mail I send I need moderator approval is that a standard
procedure or I can register somewhere to avoid this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the kde-core-devel mailing list