Re: [osg-users] bug with osg::Matrix2 in head rev

2012-04-27 Thread Sergey Polischuk
Hi, Ulrich this solution hides from user baseclass set(*T pointer) function which takes pointer as parameter, so i would rather choose something different Cheers 27.04.2012, 05:24, Ulrich Hertlein u.hertl...@sandbox.de: Hi Sergey, On 26/04/12 23:39 , Sergey Polischuk wrote:  Replying to

Re: [osg-users] bug with osg::Matrix2 in head rev

2012-04-27 Thread Robert Osfield
Hi Sergery, 2012/4/26 Sergey Polischuk pol...@yandex.ru: Problem is: declaration of set(...) methods in derived Matrix*Template classes hides base class MatrixTemplate::set(...) pack of methods This can be solved by adding line:    using MatrixTemplate[template params]::set; in each

Re: [osg-users] bug with osg::Matrix2 in head rev

2012-04-27 Thread Robert Osfield
Hi Ulrich, On 27 April 2012 02:24, Ulrich Hertlein u.hertl...@sandbox.de wrote: Matrix2Template( const Matrix2Template mat ) { base_class::set(mat.ptr()); } Could you try that and submit a patch if it works? I tried the above and it works, but as Sergey mentions the template still hides the

Re: [osg-users] bug with osg::Matrix2 in head rev

2012-04-27 Thread Robert Osfield
Hi All, On 27 April 2012 10:27, Robert Osfield robert.osfi...@gmail.com wrote: I tried the above and it works, but as Sergey mentions the template still hides the base_class::set(...) so I've gone for a using base_class:set; instead, I still have a little more testing to do before I check

[osg-users] bug with osg::Matrix2 in head rev

2012-04-26 Thread Sergey Polischuk
Hello there copy constructors for matrix2 now not work (and by this i mean code will not compile), i believe other matrices that are done with MatrixTemplate have same behavior repro code: #include osg/Uniform int main(int argc, char** argv) { osg::Matrix2 m(0,0,0,0); osg::Matrix2 m1(m);

Re: [osg-users] bug with osg::Matrix2 in head rev

2012-04-26 Thread Sergey Polischuk
Replying to myself :) Problem is: declaration of set(...) methods in derived Matrix*Template classes hides base class MatrixTemplate::set(...) pack of methods This can be solved by adding line: using MatrixTemplate[template params]::set; in each derived class declaration. May be someone

Re: [osg-users] bug with osg::Matrix2 in head rev

2012-04-26 Thread Ulrich Hertlein
Hi Sergey, On 26/04/12 23:39 , Sergey Polischuk wrote: Replying to myself :) Problem is: declaration of set(...) methods in derived Matrix*Template classes hides base class MatrixTemplate::set(...) pack of methods This can be solved by adding line: using MatrixTemplate[template