I work with templates in C ++. Is there a difference in the use of templates and the class of friends when compiling with the MSVC compiler and when using the Mingw gcc compiler. My code compiles successfully and gives the desired result when compiling with MSVC, but it gives an error when compiling with gcc. Below is my code,
///////////Record.h/////////////////////
When compiling the above code with MSVC gives the desired result, but when compiling with the Mingw GCC compiler, it gives the following error:
Base.h:1154: error: there are no arguments to 'IsNonValid' that depend on a template parameter, so a declaration of 'IsNonValid' must be available Base.h:1553: error: 'Size' was not declared in this scope
What could be a possible solution to this problem? Thanks in advance.
c ++ qt visual-studio-2010 templates mingw32
user2765235
source share