Unsolved not giving error for the undefined class
-
hi
do we have class StorageType in Qt
because i was trying to compile part of visual studio c++ code in Qt for my projectthere is one line of code which goes like his
class < class StorageType > template
{}
it is not giving error for this line of code( no where in the code the class StorageType is declared/defined) so i was wondering do we have something in QtThank you
-
Hi,
Please post a complete minimal compilable code sample that shows that lack of error.
-
@seok said in not giving error for the undefined class:
class < class StorageType > template
{
}What code is that?
Is this the real code you want to compile?
Shouldn't it be liketemplate<class StorageType> class ...
?
If so, then there is no reason for any error, as StorageType is a template parameter. -
@jsulm yes it is like
template<class StorageType> class only i am extremely sorry for the mistake i have done while posting the questionsorry
-
@seok So, this is a template and there is no reason for any errors...
-
@jsulm thank you i just read about the template parameters now only after you mentioned
all this time i was thinking StorageType is a class namethank you for your time