diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-01 19:03:47 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2026-01-01 19:51:35 +0900 |
| commit | 45d592deb685e106e20933502bbecda04ab73d75 (patch) | |
| tree | 4ce756e2ddaa21e7c97d6f35e6354912b453ab89 /src/tools | |
| parent | 2c13edf0c015de4b82f580f7833af4fffee6a04a (diff) | |
| download | tqt-45d592deb685e106e20933502bbecda04ab73d75.tar.gz tqt-45d592deb685e106e20933502bbecda04ab73d75.zip | |
Remove usage of TQ_FULL_TEMPLATE_INSTANTIATION and TQ_DUMMY_COMPARISON_OPERATOR.
The #defines were used for some very old compilers which had issues with template instantiation.
We are now using c++17 compilers, so this is unnecessary.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/tools')
| -rw-r--r-- | src/tools/tqglobal.h | 28 | ||||
| -rw-r--r-- | src/tools/tqmap.h | 7 |
2 files changed, 1 insertions, 34 deletions
diff --git a/src/tools/tqglobal.h b/src/tools/tqglobal.h index f21e0324c..d1e0064b4 100644 --- a/src/tools/tqglobal.h +++ b/src/tools/tqglobal.h @@ -243,11 +243,6 @@ # define mutable /* no template classes in TQVariant */ # define TQT_NO_TEMPLATE_VARIANT -/* Wcc does not fill in functions needed by valuelists, maps, and - valuestacks implicitly */ -# define TQ_FULL_TEMPLATE_INSTANTIATION -/* can we just compare the structures? */ -# define TQ_FULL_TEMPLATE_INSTANTIATION_MEMCMP /* these are not useful to our customers */ # define TQT_NO_SQL # endif @@ -255,9 +250,6 @@ #elif defined(__GNUC__) # define Q_CC_GNU # define Q_C_CALLBACKS -# if __GNUC__ == 2 && __GNUC_MINOR__ <= 7 -# define TQ_FULL_TEMPLATE_INSTANTIATION -# endif /* GCC 2.95 knows "using" but does not support it correctly */ # if __GNUC__ == 2 && __GNUC_MINOR__ <= 95 # define Q_NO_USING_KEYWORD @@ -306,7 +298,6 @@ but it is not defined on older compilers like C Set 3.1 */ #elif defined(__xlC__) # define Q_CC_XLC -# define TQ_FULL_TEMPLATE_INSTANTIATION # if __xlC__ < 0x400 # define Q_NO_USING_KEYWORD # define TQ_TYPENAME @@ -405,7 +396,6 @@ # define Q_CC_HPACC # else # define Q_CC_HP -# define TQ_FULL_TEMPLATE_INSTANTIATION # endif # define Q_NO_USING_KEYWORD /* ### check "using" status */ @@ -842,23 +832,7 @@ TQ_EXPORT const char *tqInstallPathShare(); #endif /* __cplusplus */ -/* - compilers which follow outdated template instantiation rules - require a class to have a comparison operator to exist when - a TQValueList of this type is instantiated. It's not actually - used in the list, though. Hence the dummy implementation. - Just in case other code relies on it we better trigger a warning - mandating a real implementation. -*/ -#ifdef TQ_FULL_TEMPLATE_INSTANTIATION -# define TQ_DUMMY_COMPARISON_OPERATOR(C) \ - bool operator==( const C& ) const { \ - tqWarning( #C"::operator==( const "#C"& ) got called." ); \ - return false; \ - } -#else -# define TQ_DUMMY_COMPARISON_OPERATOR(C) -#endif +#define TQ_DUMMY_COMPARISON_OPERATOR(C) #endif /* TQGLOBAL_H */ diff --git a/src/tools/tqmap.h b/src/tools/tqmap.h index 5f594c068..9b1888856 100644 --- a/src/tools/tqmap.h +++ b/src/tools/tqmap.h @@ -733,13 +733,6 @@ public: void remove( iterator it ) { detach(); sh->remove( it ); } void remove( const Key& k ); -#if defined(TQ_FULL_TEMPLATE_INSTANTIATION) - bool operator==( const TQMap<Key,T>& ) const { return false; } -#ifndef TQT_NO_STL - bool operator==( const std::map<Key,T>& ) const { return false; } -#endif -#endif - protected: /** * Helpers |
