Ray's playground

 

Operator Overloading(Chapter 11 of The C++ Programming Language)

  Implicit conversion can be suppressed by declaring a constructor explicit. That is, an explicit constructor will be invoked only explicitly. In particular, where a copy constructor is in principle needed, an explicit constructor will not be implicitly invoked.

 

posted on 2010-08-01 01:00  Ray Z  阅读(172)  评论(0编辑  收藏  举报

导航