Interesting - it looks like the error is true... that you technically can't
have default template arguments for functions in C++ until C++11.
http://stackoverflow.com/questions/2447458/default-template-arguments-for-function-templates
What's really interesting is that this compiles just fine with GCC 4.6.3
but _fails_ with GCC 4.7.2! I would expect it to be the other way around.
I suspect that GCC must have had support for default template arguments
for functions for quite a while even though it wasn't in the standard...
but with 4.7.2 they got more pedantic about requiring you to turn on C++11
support to enable it.
So what's the fix here?
Derek
On Sat, Mar 30, 2013 at 3:00 PM, Derek Gaston <fried...@gmail.com> wrote:
> Just updated and I'm now seeing this:
>
> CXX src/base/libmesh_oprof_la-dof_map_constraints.lo
> In file included from src/base/dof_map_constraints.C:48:0:
> ./include/libmesh/system.h:1186:45: error: default template arguments may
> not be used in function templates without -std=c++11 or -std=gnu++11
> ./include/libmesh/system.h:1195:64: error: default template arguments may
> not be used in function templates without -std=c++11 or -std=gnu++11
> ./include/libmesh/system.h:1204:38: error: default template arguments may
> not be used in function templates without -std=c++11 or -std=gnu++11
> ./include/libmesh/system.h:1607:44: error: default template arguments may
> not be used in function templates without -std=c++11 or -std=gnu++11
>
> Any ideas?
>
> Derek
>
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete
for recognition, cash, and the chance to get your game on Steam.
$5K grand prize plus 10 genre and skill prizes. Submit your demo
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Libmesh-devel mailing list
Libmesh-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libmesh-devel