使用的地方const的任何差异基础

时间:2012-10-15 13:12:31

标签: c++

  

可能重复:
  C++: const reference, before vs after type-specifier

这两个定义之间有任何不同。

 1.   void foo(Animal const& dog){}

 2.   void foo(const Animal& dog){} 

0 个答案:

没有答案