Closed GoogleCodeExporter closed 9 years ago
At least one of the problems seems that in mac, toupper and tolower are inlined
functiosn (thus not having external linkage, so no pointer-to-function can be
obtained and therefore passed to the template argument).
Please try the following solution:
in the template normalized_string template definition, receive a functor rather
than a pointer to function.
Additionally, create a TO_UPPER_FUNCTOR implemented using toupper, similar with
tolower.
Then, in the typedefs, use the newly created functors rather than the
pointer-tu-functions.
This solution is globally better than the current implementation, and should
work for most platforms.
Original comment by danielgutson@gmail.com
on 10 Jul 2011 at 11:24
(since it doesn't depend whether the toupper/tolower functions are inlined or
not in the library implementation)
Original comment by danielgutson@gmail.com
on 10 Jul 2011 at 11:26
Please, run mili tests in osX and make sure they fail. If not, please add a
test for this case.
Original comment by hugo.arregui
on 11 Jul 2011 at 12:14
This issue was closed by revision r234.
Original comment by bombax
on 31 Jul 2011 at 9:04
Original issue reported on code.google.com by
domedam...@gmail.com
on 10 Jul 2011 at 9:03