Menu

ogplus::Expose issue

Help
Thomas
2013-05-26
2013-05-28
  • Thomas

    Thomas - 2013-05-26

    Hey,

    I noticed that the oglplus::Expose function gives a compile error (Visual Studio 2012 express):

    error C2248: 'oglplus::Managed<_Object>::ObjectOps' : cannot access private typedef declared in class 'oglplus::Managed<_Object>' (oglplus\exposed.hpp:52)

    Changing ObjectOps to ObjectOps2 in the declaration of the Exposed class resolves the problem. So you get:

    template <class ObjectOps2>
    class Exposed
     : public Managed<ObjectOps2>
    {
    public:
        Exposed(const ObjectOps2& object)
         : Managed<ObjectOps2>(object)
        { }
    
        GLuint Name(void) const
        {
            return FriendOf<ObjectOps2>::GetName(*this);
        }
    };
    

    Not sure if this is a problem on your side or just the MS compiler that gets confused.

    BTW: oglplus really cuts down on the hunting to a bad GL call, so thanks alot!. And keep up the good work of course :)

    Regards,

    Thomas

     

    Last edit: Thomas 2013-05-26
    • Matus Chochlik

      Matus Chochlik - 2013-05-28

      Thanks for reporting this problem!

      Should be fixed now (since commit 89deb7b0142cb471e09ab6c70858fbdfabe441d1) on the current develop branch, will be merged with master during the next release.

       

Log in to post a comment.

MongoDB Logo MongoDB