Login Register






Why filter_list
Author
Message
Why #1
ALE + Clang_Check likes to give you errors unless you do this.

Code:
class Player { public: virtual ~Player() = default; // This Player(const Player&) = default; // Shit Player& operator=(const Player&) = default; // Right Player(Player&&) = default; // Over Player& operator=(Player&&) = default; // Here explicit Player(const std::string &texturePath); void draw(sf::RenderWindow *window); private: sf::Sprite sprite; sf::Texture texture; sf::Vector2f spritePosition; sf::Vector2u textureSize; };

EDIT: My indentation went poof and I'm too lazy to fix it.
(This post was last modified: 07-06-2018, 04:01 AM by ProfessorChill.)

Reply





Messages In This Thread
Why - by ProfessorChill - 07-06-2018, 04:00 AM
RE: Why - by phyrrus9 - 07-06-2018, 04:53 AM
RE: Why - by ProfessorChill - 07-06-2018, 04:59 AM
RE: Why - by phyrrus9 - 07-06-2018, 05:01 AM
RE: Why - by ProfessorChill - 07-06-2018, 05:04 AM
RE: Why - by phyrrus9 - 07-06-2018, 05:06 AM
RE: Why - by Vi-Sion - 07-06-2018, 03:29 PM
RE: Why - by Percent - 07-20-2018, 11:45 AM
RE: Why - by Vultra - 07-20-2018, 12:10 PM