opnsense-ports/devel/commoncpp/files/patch-inc__cc++__string.h
Franco Fichtner 8cb1a96ede ports: pull in a snapshot of the FreeBSD ports tree
Taken from:	https://github.com/freebsd/freebsd-ports.git
Commit id:	5070672073b68be364139bc6b3a89100bd17d331
2014-11-09 14:03:21 +01:00

21 lines
768 B
C++

--- inc/cc++/string.h.orig 2014-04-15 15:05:21.000000000 +0200
+++ inc/cc++/string.h 2014-04-15 15:10:46.000000000 +0200
@@ -74,6 +74,9 @@
* @author David Sugar <dyfet@ostel.com>
* @short Generic string class.
*/
+class String;
+std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
+
class __EXPORT String
{
protected:
@@ -731,7 +734,7 @@
* @param delim deliminator to use.
* @param size optional size limitor.
*/
- friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim = '\n', size_t size = 0);
+ friend __EXPORT std::istream &getline(std::istream &is, String &str, char delim, size_t size);
/**
* Stream the content of our string variable directly to a C++