| Subject: | Re: static const QString |
|---|---|
| From: | Malte Witt |
| Date: | Wed, 16 Nov 2005 10:25:25 +0100 |
Hi, > Note that only integers? can be given a value directly in the class > definition, such as: > > static const int MY_INT = 5; which works with g++ but not with i.e. msvc and others ... So you better don't use it if you want to write platform independent code. Initialize the "constant" outside the class declaration as I mentioned in my last post :-) Greetings, Malte |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | RE: static const QString, André Pönitz |
|---|---|
| Next by Date: | AW: AW: AW: QSettings, Michael.Soukup |
| Previous by Thread: | Re: static const QString, Andrew Ward |
| Next by Thread: | RE: static const QString, Alex Malyushytsky |
| Indexes: | [Date] [Thread] [Top] [All Lists] |