c++11

  1. S

    Xor'ing float value & general cast question concerning compiler output

    Well, both questions are concerned towards my compiling output, since I try to remove all warnings.. To the first question: I'm xor'ing float values, compiler output: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing] inline float...
  2. C

    Vector iterator not dereferencable with std::shared_ptr<>

    I am having trouble dereferencing a found shared_ptr from a vector after std::find. Could someone explain why this is the case? extern std::vector< shared_ptr<King::Actor> > selected foo(const std::vector<std::shared_ptr<Actor>> &playerUnits) {...
Top