Hi Brad, > I am getting the warning below with doxygen 1.8.3.1 (but not with > doxygen 1.8.1.1). In addition, > g++ (GCC) 4.8.1 20130603 (Red Hat 4.8.1-1) > does not generate any warnings for this code. > > at line 89 of file > https://projects.coin-or.org/CppAD/browser/trunk/cppad/local/unary_minus.hpp?rev=2870 > warning: no uniquely matching class member found for > > template < Base > > AD< Base > AD< Base >::operator-(void) const > > Possible candidates: > friend AD< Base > AD< Base >::operator-(const AD< Base > &left, const > AD< Base > &right)' > at line 112 of file > https://projects.coin-or.org/CppAD/browser/trunk/cppad/local/ad.hpp?rev=2870 > > AD AD< Base >::operator-(void) const ' > at line 179 of file > https://projects.coin-or.org/CppAD/browser/trunk/cppad/local/ad.hpp?rev=2870
I think that this is the same error I mentioned in "Local Template typedefs cause confusion." a few days ago. I discovered that it is not really the typedef that is the problem, it is the AD == AD < Base> aliasing nature of templates. I found that if you make your initial declaration to be the same as your outline function definition then things will work: // unary operators 178 inline AD< Base > operator+(void) const; 179 inline AD< Base > operator-(void) const; It looks like hell but seems to make doxygen happy for my cases (and on windows, will compile). It seems like the underlying issue is that doxygen does not understand that AD and AD< Base > are the same thing. Best regards, Tom I > > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Doxygen-users mailing list > Doxygen-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/doxygen-users > ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Doxygen-users mailing list Doxygen-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/doxygen-users