Error initializing with std::tie

 sf::Texture const& texture(); std::map<EnemyAction, unsigned> amountFrame; std::map<EnemyAction, sf::IntRect> enemyRect; float damage; std::tie(texture, enemyRect, amountFrame, damage) = (enemy.type == "small_zombie") ? std::make_tuple(m_gameTexture.GetEnemyTexture(), smallEnemyRect, smallEnemyFrame, SMALL_ZOMBIE_DAMAGE) : std::make_tuple(m_gameTexture.GetBigEnemyTexture(), bigEnemyRect, bigEnemyFrame, BIG_ZOMBIE_DAMAGE); 

Mistake

 note: см. ссылку Π½Π° созданиС экзСмпляров Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ шаблон ΠΏΡ€ΠΈ компиляции "std::tuple<const sf::Texture &(__cdecl &)(void),std::map<EnemyAction,sf::IntRect,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>> &,float &> &std::tuple<const sf::Texture &(__cdecl &)(void),std::map<_Kty,_Ty,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>> &,float &>::operator =<sf::Texture,std::map<_Kty,_Ty,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>>,float>(std::tuple<sf::Texture,std::map<_Kty,_Ty,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>>,float> &&)" 1> with 1> [ 1> _Kty=EnemyAction, 1> _Ty=sf::IntRect 1> ] 1> Game.cpp(62): note: см. ссылку Π½Π° созданиС экзСмпляров Ρ„ΡƒΠ½ΠΊΡ†ΠΈΠΈ шаблон ΠΏΡ€ΠΈ компиляции "std::tuple<const sf::Texture &(__cdecl &)(void),std::map<EnemyAction,sf::IntRect,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>> &,float &> &std::tuple<const sf::Texture &(__cdecl &)(void),std::map<_Kty,_Ty,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>> &,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>> &,float &>::operator =<sf::Texture,std::map<_Kty,_Ty,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>>,float>(std::tuple<sf::Texture,std::map<_Kty,_Ty,std::less<_Kty>,std::allocator<std::pair<const _Kty,_Ty>>>,std::map<_Kty,unsigned int,std::less<_Kty>,std::allocator<std::pair<const _Kty,unsigned int>>>,float> &&)" 1> with 1> [ 1> _Kty=EnemyAction, 1> _Ty=sf::IntRect 1> ] 

Closed due to the fact that off-topic participants ߊߚ߀ߘ , αλΡχολυτ , Denis Bubnov , Sasha Omelchenko , aleksandr barakin 3 May '17 at 16:31 .

It seems that this question does not correspond to the subject of the site. Those who voted to close it indicated the following reason:

  • "The question is caused by a problem that is no longer reproduced or typed . Although similar questions may be relevant on this site, solving this question is unlikely to help future visitors. You can usually avoid similar questions by writing and researching a minimum program to reproduce the problem before publishing the question. " - ߊߚ߀ߘ, αλΡχολυτ, Denis Bubnov, Sasha Omelchenko, aleksandr barakin
If the question can be reformulated according to the rules set out in the certificate , edit it .

    1 answer 1

    sf::Texture const& texture(); This is a function declaration, not a variable.