HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
Has this configure test been changed recently? I have std::count(begin, end, char) on this machine, but it's broken. The configure test checks only for availability not for working status. My problem is, I don't know how to modify lyxinclude.m4 to run the sample code and test it. Can someone

Re: HAVE_STD_COUNT

2002-01-11 Thread Jean-Marc Lasgouttes
Angus == Angus Leeming [EMAIL PROTECTED] writes: Angus Has this configure test been changed recently? I have Angus std::count(begin, end, char) on this machine, but it's broken. Angus The configure test checks only for availability not for working Angus status. Angus My problem is, I don't

Re: HAVE_STD_COUNT

2002-01-11 Thread Andre Poenitz
On Fri, Jan 11, 2002 at 04:26:44PM +, Angus Leeming wrote: My problem is, I don't know how to modify lyxinclude.m4 to run the sample code and test it. Can someone help me? Not me. But I'd rather revert to some hand-coded loop than to uses such a loop and std::count in some '#ifdef'.

Re: HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
; then AC_DEFINE(HAVE_STD_COUNT, 1, [Define if you have a conforming std::count template, otherwise HP version of count template is assumed.]) fi]) I'd just check that (i == 2) Are there other versions of std::count that work on your system ((I presume cxx 6.1)? What about using a C-library

Re: HAVE_STD_COUNT

2002-01-11 Thread Jean-Marc Lasgouttes
=no) ]) if test Angus $lyx_cv_std_count = yes ; then AC_DEFINE(HAVE_STD_COUNT, 1, Angus [Define if you have a conforming std::count template, otherwise Angus HP version of count template is assumed.]) fi]) Angus I'd just check that (i == 2) I see. Angus the second (HP) version of this std::count works

Re: HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
= countChar(a, a + 5, 'l'); Angus ],lyx_cv_std_count=yes,lyx_cv_std_count=no) ]) if test Angus $lyx_cv_std_count = yes ; then AC_DEFINE(HAVE_STD_COUNT, 1, Angus [Define if you have a conforming std::count template, otherwise Angus HP version of count template is assumed.]) fi]) Angus I'd just check

Re: HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
function. Eg: lyxcount.[Ch] template lyxcount() { #ifdef HAVE_STD_COUNT use std::count #else use the gnu one #endif } Regards, Angus

HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
Has this configure test been changed recently? I have std::count(begin, end, char) on this machine, but it's broken. The configure test checks only for availability not for working status. My problem is, I don't know how to modify lyxinclude.m4 to run the sample code and test it. Can someone

Re: HAVE_STD_COUNT

2002-01-11 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Has this configure test been changed recently? I have Angus> std::count(begin, end, char) on this machine, but it's broken. Angus> The configure test checks only for availability not for working Angus> status. Angus> My problem

Re: HAVE_STD_COUNT

2002-01-11 Thread Andre Poenitz
On Fri, Jan 11, 2002 at 04:26:44PM +, Angus Leeming wrote: > My problem is, I don't know how to modify lyxinclude.m4 to run the sample > code and test it. Can someone help me? Not me. But I'd rather revert to some hand-coded loop than to uses such a loop and std::count in some '#ifdef'.

Re: HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
uot;; int i = countChar(a, a + 5, 'l'); ],lyx_cv_std_count=yes,lyx_cv_std_count=no) ]) if test $lyx_cv_std_count = yes ; then AC_DEFINE(HAVE_STD_COUNT, 1, [Define if you have a conforming std::count template, otherwise HP version of count template is assumed.]) fi]) I'd just check that (i == 2) &g

Re: HAVE_STD_COUNT

2002-01-11 Thread Jean-Marc Lasgouttes
ar(a, a + 5, 'l'); Angus> ],lyx_cv_std_count=yes,lyx_cv_std_count=no) ]) if test Angus> $lyx_cv_std_count = yes ; then AC_DEFINE(HAVE_STD_COUNT, 1, Angus> [Define if you have a conforming std::count template, otherwise Angus> HP version of count template is assumed.]) fi]) Angus> I

Re: HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
e, > Angus> char const c) { return count(b, e, c); } ],[ char a[] = > Angus> "hello"; int i = countChar(a, a + 5, 'l'); > Angus> ],lyx_cv_std_count=yes,lyx_cv_std_count=no) ]) if test > Angus> $lyx_cv_std_count = yes ; then AC_DEFINE(HAVE_STD_COUNT, 1, > Angus> [D

Re: HAVE_STD_COUNT

2002-01-11 Thread Angus Leeming
u function. Eg: lyxcount.[Ch] template<> lyxcount() { #ifdef HAVE_STD_COUNT use std::count #else use the gnu one #endif } Regards, Angus