Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Community » Newbie corner » Extending an existing widget...
Extending an existing widget... [message #50673] Mon, 03 December 2018 04:33 Go to previous message
ptkacz is currently offline  ptkacz
Messages: 89
Registered: March 2017
Member
Hi All,

I'm attempting to extend EditValue, based on how a class like EditString is defined, found listed within the EditCtrl.h header file. The definition looks like:

class ExtendedEdit : public EditValue<WString, ConvertString> {
public:
	typedef ExtendedEdit CLASSNAME;
        ...

Unfortunately, the error error: expected template-name before '<' token results in being generated. If EditCtrl.h is included, a whole slew of compilation errors result. Since EditCtrl.h's parent file is, CtrlLib.h that's included instead.

How is it that
class EditString : public EditValue<WString, ConvertString> {...}
is defined, but does not receive the error, error: expected template-name before '<' token?


Peter


PS: It's a shame that there are header files that include some useful functions or methods, and when included, bomb because they are dependant on other libraries being included prior. From a software design perspective, shouldn't each library file stand on it's own with the expected includes?

[Updated on: Mon, 03 December 2018 04:37]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: Conditional compilation
Next Topic: Sigh, SetData / GetData...
Goto Forum:
  


Current Time: Sat May 18 04:19:08 CEST 2024

Total time taken to generate the page: 0.02045 seconds