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
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
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'.
; 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
=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
= 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
function.
Eg: lyxcount.[Ch]
template
lyxcount() {
#ifdef HAVE_STD_COUNT
use std::count
#else
use the gnu one
#endif
}
Regards,
Angus
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
> "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
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'.
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
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
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
u function.
Eg: lyxcount.[Ch]
template<>
lyxcount() {
#ifdef HAVE_STD_COUNT
use std::count
#else
use the gnu one
#endif
}
Regards,
Angus
14 matches
Mail list logo