On 24/05/12 22:37, David Piepgrass wrote:
At ZNC we have an own string class CString, which is inherited from std::string.
The goal is to use it as a just string in target languages.
How to do that properly?
When you use a string class derived from std::string, the main problem tends to
be
On 24/05/12 19:45, Alexey Sokolov wrote:
Hello!
At ZNC we have an own string class CString, which is inherited from
std::string.
The goal is to use it as a just string in target languages.
How to do that properly?
When I was writing modperl and modpython ZNC modules, I used an approach
27.05.2012 04:14, William S Fulton пишет:
I can't replicate this bug with 2.0.6, you are going to have to
provide a test case. swig-2.0.5 introduced a regression which was
fixed in 2.0.7 - incorrect typemaps for templates were being used in
conjunction with typedef. Please try 2.0.7 and report
We do the same thing here, we just use basic in/out typemaps.
E.g.
%typemap(out) YString
{
$result = PyString_FromString((char *)static_castconst char *($1));
}
%typemap(in) const YString
{
$1 = new YString(PyString_AsString($input));
}
-Original Message-
From:
At ZNC we have an own string class CString, which is inherited from
std::string.
The goal is to use it as a just string in target languages.
How to do that properly?
When you use a string class derived from std::string, the main problem tends to
be that SWIG's built-in typemaps refer to
5 matches
Mail list logo