Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

dyn_cast vs. dynamic_cast in C++

I come across a lot of dyn_cast in a codebase I am working on.

Is it the same thing as dynamic_cast ? or something different ? I searched a bit but couldn't find much info..

like image 274
Cemre Mengü Avatar asked Aug 23 '12 00:08

Cemre Mengü


1 Answers

dyn_cast is part of the LLVM API (and also is the first, second, third, etc.. hit on google) works just like dynamic_cast, however, one difference is that the class doesn't require a v-table like dynamic_cast. Please see the manual for more info.

like image 191
Jesse Good Avatar answered Oct 20 '22 21:10

Jesse Good