Skip to content
Snippets Groups Projects
Commit 69a7615d authored by Jan Trávníček's avatar Jan Trávníček
Browse files

fix variables shadowing in variant

parent 224e55d9
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -191,7 +191,7 @@ class variant_base<ST, AT, F, Ts...> : public variant_base<ST, AT, Ts...> {
using variant_base<ST, AT, Ts...>::variant_base;
 
protected:
variant_base( type_id_hash_code type_id ) : variant_base<ST, AT, Ts...>::variant_base ( type_id ) { }
variant_base( type_id_hash_code id ) : variant_base<ST, AT, Ts...>::variant_base ( id ) { }
 
public:
variant_base(const F& value) : variant_base<ST, AT, Ts...>::variant_base ( type_id_hash_code ( typeid(F).hash_code() ) ) { new (&this->data) F(value); }
......@@ -205,7 +205,7 @@ class variant_base<ST, AT, void, Ts...> : public variant_base<ST, AT, Ts...> {
using variant_base<ST, AT, Ts...>::variant_base;
 
protected:
variant_base( type_id_hash_code type_id ) : variant_base<ST, AT, Ts...>::variant_base ( type_id ) { }
variant_base( type_id_hash_code id ) : variant_base<ST, AT, Ts...>::variant_base ( id ) { }
 
public:
variant_base() : variant_base<ST, AT, Ts...>::variant_base ( type_id_hash_code ( typeid(void).hash_code() ) ) { }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment