Rhys Ulerich created LOGCXX-419:
-----------------------------------
Summary: 'typedef spi::KeySet KeySet' changes meaning of typedef
Key: LOGCXX-419
URL: https://issues.apache.org/jira/browse/LOGCXX-419
Project: Log4cxx
Issue Type: Bug
Components: Filter
Affects Versions: 0.10.0, 0.10.1
Environment: Ubuntu Saucy, GCC 4.8.1, Autotools
Reporter: Rhys Ulerich
Assignee: Rhys Ulerich
Observed in the build...
In file included from
../../../../log4cxx/src/main/include/log4cxx/spi/filter.h:24:0,
from
../../../../log4cxx/src/main/include/log4cxx/filter/andfilter.h:27,
from ../../../../log4cxx/src/main/cpp/andfilter.cpp:18:
../../../../log4cxx/src/main/include/log4cxx/spi/loggingevent.h:171:45: error:
declaration of ‘typedef log4cxx::spi::KeySet
log4cxx::spi::LoggingEvent::KeySet’ [-fpermissive]
typedef spi::KeySet KeySet;
^
In file included from
../../../../log4cxx/src/main/include/log4cxx/helpers/objectptr.h:21:0,
from
../../../../log4cxx/src/main/include/log4cxx/spi/filter.h:21,
from
../../../../log4cxx/src/main/include/log4cxx/filter/andfilter.h:27,
from ../../../../log4cxx/src/main/cpp/andfilter.cpp:18:
../../../../log4cxx/src/main/include/log4cxx/spi/loggingevent.h:46:34: error:
changes meaning of ‘KeySet’ from ‘typedef class
std::vector<std::basic_string<char> > log4cxx::spi::KeySet’ [-fpermissive]
LOG4CXX_LIST_DEF(KeySet, LogString);
^
../../../../log4cxx/src/main/include/log4cxx/log4cxx.h:48:55: note: in
definition of macro ‘LOG4CXX_LIST_DEF’
#define LOG4CXX_LIST_DEF(N, T) typedef std::vector<T> N
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)