タグ

関連タグで絞り込む (2)

タグの絞り込みを解除

cppに関するEhrenのブックマーク (3)

  • 前置インクリメント vs 後置インクリメント | 闇夜のC++

    後置インクリメントにはひと目で遅くなりそうな処理が見て取れますね。 前置インクリメントがインクリメント処理後、単純に自身の参照を返すのに対し、後置インクリメントではインクリメント前に一時オブジェクトの生成、そしてインクリメント後にはその前に生成した一時オブジェクトを値で返しています。 前置と後置では、単純にオブジェクトをコピーして返す分、普通に考えたら後置の方が遅いよね。というのが従来の認識でした。 「C++ Coding Standards -101のルール、ガイドライン、ベストプラクティス」の中でも、特に後置インクリメントの必然性が無い時は迷わず前置インクリメントを使うことが推奨されてきました。 元の値を必要としないときは前置形式の演算子を使おう __C++ Coding Standards (p50) 新たな主張 「ゲームエンジン・アーキテクチャ第二版」の中の一節を紹介します。 しか

    Ehren
    Ehren 2015/04/20
  • Game Programming Patterns

    Hey, Game Developer! Do you struggle to make your code hang together into a cohesive whole? Find it harder to make changes as your codebase grows? Feel like your game is a giant hairball where everything is intertwined with everything else? Wonder if and how design patterns apply to games? Hear things like “cache coherency” and “object pools”, but don’t know how to use them to make your game faste

    Ehren
    Ehren 2014/12/18
  • Boost python not found when building cv_bridge under OSX

    I am having the problem that cv_bridge can't find my boost libraries although it must have found them for the packages before when installing hydro on OSX. When I look into /usr/local/include I can see all the boost files and folders, also python. What's the problem here? When I print the output of my boost libraries it says none. CMAkeLists.txt: cmake_minimum_required(VERSION 2.8) project(cv_brid

    Boost python not found when building cv_bridge under OSX
  • 1