[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Problem with gl_REGEX and C++
From: |
Albert Chin |
Subject: |
Problem with gl_REGEX and C++ |
Date: |
Thu, 15 Jan 2009 12:09:20 -0600 |
User-agent: |
Mutt/1.5.18 (2008-05-17) |
gl_REGEX from m4/regex.m4 cannot be reliably tested under C++. The
problem is:
static struct re_pattern_buffer regex;
unsigned char folded_chars[UCHAR_MAX + 1];
...
regex.translate = folded_chars;
If the `translate' member is char * on some platforms, this test will
fail.
On RHEL4, g++ returns:
error: invalid conversion from `unsigned char*' to `char*'
because the `translate' member is char *. RHEL5 work fine as the
`translate' member is unsigned char *.
--
albert chin (address@hidden)
- Problem with gl_REGEX and C++,
Albert Chin <=