GodZza

导航

2013年9月29日 #

不支持C++11 decltype的噩耗

摘要: 前言:因为公司现在使用vs2008,所以很多c++11的新特性还未能使用,导致写了很多冤枉代码。最初引擎的数学库非常简单,使用起来也不方便,例如:float FastLerp(const float& a, const float& b, float t);vec2f FastLerp(const vec2f& a, const vec2f& b, float t);vec3f FastLerp(const vec3f& a, const vec3f& b, float t);而实现代码也很简单,把声明了的函数实现三篇(三个函数体是一样的)Fas 阅读全文

posted @ 2013-09-29 18:39 GodZza 阅读(1336) 评论(0) 推荐(1) 编辑