Re: Trouble debugging some STL code

2018-02-05 Thread Richard Kettlewell
"davin.pear...@gmail.com" writes: > http://davinpearson.com/binaries/string.hh Your operator< overloads in dmp::string are broken. Possibly other bugs, I didn’t look any further. -- https://www.greenend.org.uk/rjk/ ___ help-gplusplus mailing list help

Re: Trouble debugging some STL code

2018-02-04 Thread davin.pear...@gmail.com
On Tuesday, January 30, 2018 at 4:36:16 AM UTC+13, Richard Kettlewell wrote: > "davin.pearson" writes: > > > The following code generates a linker error: > [...] > > You’ve tried to explicitly instantiate a template, but got the syntax > wrong. See > https://gcc.gnu.org/onlinedocs/gcc/Template-In

Re: Trouble debugging some STL code

2018-01-29 Thread Richard Kettlewell
"davin.pear...@gmail.com" writes: > The following code generates a linker error: [...] You’ve tried to explicitly instantiate a template, but got the syntax wrong. See https://gcc.gnu.org/onlinedocs/gcc/Template-Instantiation.html for details. -- https://www.greenend.org.uk/rjk/ __

Re: Trouble debugging some STL code

2018-01-28 Thread davin.pear...@gmail.com
The following code generates a linker error: #include #include #include #include #include #include #include class Writer { public: Writer& operator << (const char* s) { for (const char* ch = s; *ch != 0; ++ch) { printf("%c",*ch); } return *this; }

Re: Trouble debugging some STL code

2018-01-25 Thread davin.pear...@gmail.com
Thank you for taking the time to fix my bug. It becomes obvious when the solution is presented to me. On Friday, January 26, 2018 at 8:52:06 AM UTC+13, Richard Kettlewell wrote: > writes: > > std::ostream& operator << (std::ostream& o, const > > std::map& map) > > { > >typename std::map::it

Re: Trouble debugging some STL code

2018-01-25 Thread Richard Kettlewell
"davin.pear...@gmail.com" writes: > std::ostream& operator << (std::ostream& o, const std::map& > map) > { >typename std::map::iterator it = map.begin(); [...] > cd ~/lisp++-projects && make 2018/map/map5.run > make: Warning: File '2006/libd/libd.o' has modification time 26862 s in the > f