This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/77477] New: template functions don't seem to work


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);
             ^
*/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]