Bugs item #939960, was opened at 2004-04-22 04:28
Message generated for change (Comment added) made by nemies
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=939960&group_id=93438
Category: Build
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 5
Submitted By: Ed Catmur (edcatmur)
Assigned to: Nobody/Anonymous (nobody)
Summary: Compile failure in libnr/nr-maybe.h
Initial Comment:
In file included from ../libnr/nr-rect.h:24,
from ../libnr/nr-macros.h:23,
from ../libnr/nr-matrix.h:22,
from ../libnr/nr-types.h:23,
from nr-types.cpp:1:
../libnr/nr-maybe.h: In constructor
`NR::IsNot<T>::IsNot()':
../libnr/nr-maybe.h:27: error: there are no arguments
to `string' that depend on a template parameter, so a
declaration of `string' must be available
../libnr/nr-maybe.h:27: error: (if you use
`-fpermissive', G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
In file included from ../libnr/nr-rect.h:24,
from nr-macros.h:23,
from nr-values.cpp:5:
../libnr/nr-maybe.h: In constructor
`NR::IsNot<T>::IsNot()':
../libnr/nr-maybe.h:27: error: there are no arguments
to `string' that depend on a template parameter, so a
declaration of `string' must be available
../libnr/nr-maybe.h:27: error: (if you use
`-fpermissive', G++ will accept your code, but allowing
the use of an undeclared name is deprecated)
Using (g++) gcc 3.3.3. C(XX)FLAGS do not appear to
affect problem, except if -fpermissive is added.
Easy patch:
--- inkscape-0.38.1/src/libnr/nr-maybe.h
2004/04/22 11:17:19 1.1
+++ inkscape-0.38.1/src/libnr/nr-maybe.h
2004/04/22 11:17:52
@@ -24,7 +24,7 @@
/** An exception class for run-time type errors */
template <typename T>
class IsNot : public std::domain_error {
- IsNot() : domain_error(string("Is not ") +
typeid(T).name()) {}
+ IsNot() : domain_error(std::string("Is not ") +
typeid(T).name()) {}
};
/** A type with only one value, which (in principle)
is only equal to itself.
----------------------------------------------------------------------
>Comment By: Kees Cook (nemies)
Date: 2004-05-09 23:26
Message:
Logged In: YES
user_id=26678
Thanks! This is in the current CVS now.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=604306&aid=939960&group_id=93438
|