Questions tagged [boost-implicit-cast]

2 questions
16
votes
4 answers

What is the difference between static_cast and Implicit_cast?

What is implicit_cast? when should I prefer implicit_cast rather than static_cast?
yesraaj
  • 46,370
  • 69
  • 194
  • 251
0
votes
1 answer

Why uses implicit_cast(int) instead of static_cast(int)?

I have read some code in muduo, an open source network library, and I found that the author use implicit_cat(int) rather than static_cast(int) in many place. The definition of implicit_cast is as follows: // Use implicit_cast as a…
Phoenix Chao
  • 390
  • 3
  • 19