Skip to content

Cannot distinguish vector<char> from vector<string> #5

@GoogleCodeExporter

Description

@GoogleCodeExporter
The following code has problem calling the vector<string> function.
"""
#include <string>
#include <vector>

void func (std::vector<char> v) {}
void func (std::vector<std::string> v) {}
"""

Here is the python input/output for running with a list of strings (['abc', 
'def']):
"""
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
RuntimeError: Python conversion failed - RuntimeError: no overloaded member 
matches 
arguments.
"""

Note, that in this case, running with list of chars (['a', 'b', 'c']) works 
fine. Also, running with list of 
strings, when the overloaded vector<char> function does not exist, everything 
works as intended.

Original issue reported on code.google.com by misha.seltzer on 6 Jun 2009 at 4:43

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions