Quote:Original post by phresnelQuote:Ameise
From my understanding, GCC used to have issues with compiling templated classes
I think you are mixing something up ...Quote:Q: Ima porting code to gcc, but gcc is buggyQuote:A: Add a typename there
As an update on that one:
template <typename C> struct can_deref_C_to_XXX : YesNo { // murk<> helps to let us call is_type() with an integer argument template <int> struct murk { murk(int); }; template <typename S> static Yes is_type (murk< sizeof(((S*)0)->XXX) >); template <typename S> static No is_type (...); enum { value = sizeof(Yes) == sizeof(is_type<C>(0)) };};
MSVC yields can_deref_C_to_XXX<T>::value = true, even if T::XXX is a static member. In other words: At least within templates, you can access static members via operator ->.
(This was discovered in an act of solving has_member_xxx for MSVC. The updated has_member_xxx-thingy is in http://gitorious.org/picogen/picogen/blobs/master/src/kallisto/traits/traits.hh#line101.)
Quote:Original post by Steve132
I couldn't get gcc 4.5 to install (god DAMN the mingw project needs some direction. Whoever is running it is absolutely totally unprofessional)
A question: Why install gcc? Usually it's enough to get the binaries and paste them to C:\MinGW.