Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: lambda can't access private members  (Read 881 times)

0 Members and 1 Guest are viewing this topic.

EGYPTIAN CODER

  • Newbie
  • *
  • Posts: 32
    • View Profile
    • Email
lambda can't access private members
« on: February 17, 2017, 10:56:36 am »
hello every one
I am building a game engine that separate actions from reactions(soon I will post it)
the reactions is lamba  :)  functions  and the actions are every time two drawable objects collide
but there is a problem that lambda need to access private members
and every time I find my self in this situation I made this members public :-\  but I think that this is very bad
temporary solution ;
so some help would would be great

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: lambda can't access private members
« Reply #1 on: February 17, 2017, 12:40:15 pm »
This forum is about SFML, there are many other (better) forums to deal with generial C++ questions. Thanks.
Laurent Gomila - SFML developer