This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libstdc++/77477] New: template functions don't seem to work
- From: "jmichae3 at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sun, 04 Sep 2016 23:29:06 +0000
- Subject: [Bug libstdc++/77477] New: template functions don't seem to work
- Auto-submitted: auto-generated
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77477
Bug ID: 77477
Summary: template functions don't seem to work
Product: gcc
Version: 7.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: jmichae3 at yahoo dot com
Target Milestone: ---
#include <string>
#include <algorithm>
namespace str {
template< class S >
size_t str::find<S>(S searchIn, S searchFor, bool iCase=false, size_t pos=0);
template< class S >
int str::compare<S>(S first, S second, bool iCase=false, size_t firstPos=0);
template< class S >
S str::ltrim<S>(S s, S whitespaceCharSet);
}
/*
h.cpp:5:17: error: expected initializer before '<' token
size_t str::find<S>(S searchIn, S searchFor, bool iCase=false, size_t pos=0);
^
h.cpp:7:17: error: expected initializer before '<' token
int str::compare<S>(S first, S second, bool iCase=false, size_t firstPos=0);
^
h.cpp:9:13: error: expected initializer before '<' token
S str::ltrim<S>(S s, S whitespaceCharSet);
^
*/