Fellow C++ dev, just a warning after being brought to the edges of madness by the following bug (item 2)

https://github.com/opencog/miner/pull/14

TL;DR version:

Never overload a C++ function with different semantics depending on argument types because C++ may silently convert your object especially when you expect it the least.

different semantics <=> different names

Nil

--
You received this message because you are subscribed to the Google Groups 
"opencog" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/opencog/a28511a1-7044-a232-99dc-9d8880756d41%40gmail.com.

Reply via email to