翔泳社では、「独習」「徹底入門」「スラスラわかる」「絵で見てわかる」「一年生」などの人気シリーズをはじめ、言語や開発手法、最新技術を解説した書籍を多数手がけています。プロジェクトマネジメントやチームビルティングといった管理職向けの ...
先日もハマった事があったので自戒の念を込めてメモ。ここはnote。 この一見合法なコードが時々謎のメモリアクセス違反を引き起こす...。プログラミング言語はC++。 コールバック関数をラムダ式で用意して、コンテナに積んで、クラスのインスタンスは別 ...
VS 17.5 preview 2 fail to compile this simple snippet C:\Temp> open src/main.cpp 02:18:53 import std; int main() { auto foo = std::vector<int>{ 1 }; return 0; } C:\Temp> open src/foo.mpp 02:19:05 ...
Apparently, it's not possible to create a collection with an abstract type in STL. How do I go around the problem of creating a collection with a base abstract type and using that collection with a ...
I have an input stream that consists of floats. I have a std::vector< std::vector<float> >, because the data is really several columns of numbers, each of which I want to keep seperate. I'm trying to ...