base: add copy constructor to 'Genode::Session_label'

Fixes #3333
This commit is contained in:
Christian Prochaska 2019-05-06 14:15:45 +02:00 committed by Christian Helmuth
parent d223539165
commit fe878e65de

View File

@ -33,6 +33,16 @@ struct Genode::Session_label : String<160>
using String = String<capacity()>; using String = String<capacity()>;
using String::String; using String::String;
/**
* Copy constructor
*
* This constructor is needed because GCC 8 disregards derived
* copy constructors as candidate.
*/
template <size_t N>
Session_label(Genode::String<N> const &other)
: Genode::String<160>(other) { }
Session_label last_element() const Session_label last_element() const
{ {
char const * const full = string(); char const * const full = string();