Difference between revisions of "Workshop 5"
(Created page with 'Q:I'm getting the following error: w5.cpp:43:22: error: default template arguments may not be used in function templates without -std=c++0x or -std=gnu++0x at Line: …') |
|||
Line 1: | Line 1: | ||
− | Q:I'm getting the following error: | + | '''Q:''' I'm getting the following error: |
Line 11: | Line 11: | ||
Could someone pls help resolve this? Thanks | Could someone pls help resolve this? Thanks | ||
+ | |||
+ | '''A:''' |
Latest revision as of 20:45, 28 October 2013
Q: I'm getting the following error:
w5.cpp:43:22: error: default template arguments may not be used in function templates without -std=c++0x or -std=gnu++0x
at Line:
template <class T = double> Line43-> Array<T>::Array(int n){
Could someone pls help resolve this? Thanks
A: