Hi,<br><br>No, a bool is not an int32. Try just sizeof(bool) to be sure (on my box, it's one).<br>Besides, if you use a std::vector of bool, be aware of the fact that it is not like the other vectors.<br><br>Matthieu<br>
<br><div><span class="gmail_quote">2007/11/7, Sebastian Haase <<a href="mailto:haase@msg.ucsf.edu">haase@msg.ucsf.edu</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>I have a templated function written in C++.<br>My SWIG typemap instantiates this for many argument array types (such<br>as unit8, int16, uint16, int32, float32,float64,...)<br>All works well, except when feeding in a boolean array as in
<br>seb.mmms(a>6)<br>I get this error:<br>NotImplementedError: No matching function for overloaded 'mmms'<br><br>What should I do ?<br>Preferably I would avoid having to add another type-instantiation into<br>the library (it looks already quite bloated having 6+ versions of
<br>every function). Isn't bool just a synonym for int32 ?<br><br>Thanks<br>Sebastian Haase<br>_______________________________________________<br>Numpy-discussion mailing list<br><a href="mailto:Numpy-discussion@scipy.org">
Numpy-discussion@scipy.org</a><br><a href="http://projects.scipy.org/mailman/listinfo/numpy-discussion">http://projects.scipy.org/mailman/listinfo/numpy-discussion</a><br></blockquote></div><br><br clear="all"><br>-- <br>
French PhD student<br>Website : <a href="http://miles.developpez.com/">http://miles.developpez.com/</a><br>Blogs : <a href="http://matt.eifelle.com">http://matt.eifelle.com</a> and <a href="http://blog.developpez.com/?blog=92">
http://blog.developpez.com/?blog=92</a><br>LinkedIn : <a href="http://www.linkedin.com/in/matthieubrucher">http://www.linkedin.com/in/matthieubrucher</a>