2015-01-01ãã1å¹´éã®è¨äºä¸è¦§
C++ã®ã¨ãã»ã³ã¹ãèªãã§ãã¦ãC++ã«ãããåã¨ãªãã¸ã§ã¯ãã¨å¤ã¨å¤æ°ã®å®ç¾©ãèå³æ·±ãã£ãã®ã§å¼ç¨ã¡ã¢ãã¾ãã SBã¯ãªã¨ã¤ãã£ã:C++ã®ã¨ãã»ã³ã¹ ã®P5 §1.5åã¨å¤æ°ã¨ç®è¡æ¼ç® ãã ããªãã¡ã宣è¨ã¯ã以ä¸ã«ç¤ºããããªãååä»ãã®å®ä½ã«å¯¾ãããåã®æâ¦
2015/12/05ã«è¡ãããBoost.åå¼·ä¼ #19 æ±äº¬ã«åå ãã¦ãã¾ããã connpass.com æ10æããã¨ãèµ·ããããã大å¤ä¸å®ã§ããããç¡äºèµ·ãããã¦å®å µãã¾ããã ä¼å ´ã¨ãã¦ãªã£ãIIJãããããæ°´ãé ãã¾ããããããã¨ããããã¾ãã æåã«@cpp_akiraãããâ¦
è¦ç´ 12æ1æ¥ã®Update1ã§Visual C++ã«moduleã試é¨çã«å®è£ ããã¾ãã channel9.msdn.com ãã®moduleã®ææ³ã¯ãããã http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4214.pdf ã¨è¿ããã®ã«ãªã£ã¦ãã¾ãã moduleã¨ã¯ javaã®package/importããâ¦
mattn.kaoriya.net ãã¡ãã®è¨äºã§ç´¹ä»ããã¦ããRunnerã試ãã«ä½¿ã£ã¦ã¿ã¾ããã Visual Studio Marketplace Runnerã®ã¤ã³ã¹ãã¼ã«ãå®äºããããVisual Studio Codeã®User Settingsãããsetting.jsonãç·¨éãã¾ãã runner.languageMapã¨ãããã¼ã®ãªãã¸â¦
åææ¡ä»¶(ç§ãæåããæã®ç°å¢) MinGWãã¤ã³ã¹ãã¼ã«ããã¦ããã㨠MinGWã®gcc, g++ãªã©ãcmdã«ãã¹ãéã£ã¦ããã㨠cmakeãã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ãcmdã«ãã¹ãéã£ã¦ããã㨠python2.7ãã¤ã³ã¹ãã¼ã«ããã¦ãããã¨ãcmdã«ãã¹ãéã£ã¦ããã㨠â¦
Windows8.1ã§ãã¼ã«ã«ã¢ã«ã¦ã³ãä½ææã«ããã¤ã¢ãã°ã«ä¿ãããã¾ã¾MSã¢ã«ã¦ã³ãã¨é£æºããã¨ãã¦ã¼ã¶ãã©ã«ãåãMSã¢ã«ã¦ã³ãã®ååã«ãªãã¾ãã 大æµMSã¢ã«ã¦ã³ãåã¯æ¥æ¬èªã§ç»é²ãã¦ããã®ã§ããã©ã«ãåãæ¥æ¬èªã«ãªã£ã¦ãã¾ãã¾ãã ãããã説æãâ¦
ãã¡ãã®åç» www.youtube.com ã§ç´¹ä»ããã¦ããã¤ãã£ãªã ãèªåãªãã«è§£éãå ãã¦ã¾ã¨ãã¦ã¿ããã¨æãã¾ããé·ãã®ã§ååå¾åã«åå²ããäºå®ã§ãã for_each_argument C++14ããå ¥ã£ããã¸ã§ããªãã¯ã©ã ããç¨ãã¦ãè²ã ãªåã®å¤æ°ãèµ°æ»ããfor_eachãâ¦
Windowsã§cmdããã¯å¤å°ãã·ãªã¿ã¼ããã«ç°å¢ãæ´ãã¾ãããä»ä½¿ã£ã¦ãPCãå£ããæã«ããã復å ã§ããããã«èªååãã«æ§ç¯æé ãã¾ã¨ãã¾ãã 注æ ã¬ã¸ã¹ããªãæä½ãã¾ããããã«æ¸ãããã¬ã¸ã¹ããªã®æä½ãçä¼¼ããçµæããªãã®PCããããããªã£ã¦ã責â¦
注æ Visual Studio 2015 RCã§åä½ã確èªãã¾ãããä»ã®VSã§ã¯ç¢ºèªãã¦ãã¾ããã Visual C++ããã¸ã§ã¯ãã§å³ã¯ãªãã¯ããã¦ããNuGetããã±ã¼ã¸ã®ç®¡çããã¯ãªãã¯ãã¾ãã æ¤ç´¢ãã©ã¼ã ã«boostã¨å ¥åãã¾ããå°ãå¾ ã¤ã¨æ¤ç´¢çµæãåºã¦ããã®ã§ãç»é¢å³ã«â¦
4æ24æ¥å¤ãç§ç©ãã¼ãPCãæ»ã¬ 29æ¥ããã¼ãPCå ¥é¢ãã 5æ1æ¥ãå人ã¨ã²ã¼ã»ã³ã¨ã«ã©ãªã±ã§é㶠2æ¥ãå人ã¨ããããªã³ã§é㶠3æ¥ãå人ã¨é£²ã¿ä¼ããã 4æ¥ãå人ã¨ããéç観æ¦ã«è¡ã 5æ¥ãå人ã¨ã²ã¼ã»ã³ã¨ã«ã©ãªã±ã§é㶠6æ¥ãå人ã¨æ ç»éè³ã«è¡ã ãâ¦
以ä¸staticãã¼ã¿ã¡ã³ãã¨æ示ããªãéããéstaticãã¼ã¿ã¡ã³ããåã«ãã¼ã¿ã¡ã³ãã¨è¡¨ç¾ãã¾ãã Aggregates ã¨ã¯ Aggregates(以ä¸ãéæä½)ã¯é åã¨ã以ä¸ã®æ¡ä»¶ãæºãããã¯ã©ã¹ã§ãã ã¦ã¼ã¶å®ç¾©ã®ã³ã³ã¹ãã©ã¯ã¿(ã³ãã¼ãã ã¼ãå«ã)ãç¡ããã¨ãã¤ã¾â¦
åæã¨ãã¦WindowsOSã§ãããCLionã¨MinGWã¯ã¤ã³ã¹ãã¼ã«æ¸ã¿ã¨ãã¾ãã(cmakeã¯CLionã¤ã³ã¹ãã¼ã«æã«ä¸ç·ã«å ¥ãã¾ã) ç§ã®ç°å¢ã¯ Windows 8.1 CLion 1.0 MinGW ä¸æ g++ã¯4.8.1ã§ãã DxLib 3.13d ã§ãããCLion㯠www.jetbrains.com ããè½ã¨ãã¾ããMinGâ¦
ç´ æµãªã¿ã¤ãã«ãæãã¤ãã¾ããã§ããã çµè« 以ä¸ã®ãªã³ã¯ã«æ¸ãã¦ããå 容ã«ã¤ãã¦è§¦ãã¦ãã¾ã c++ - Pretty-print std::tuple - Stack Overflow c++ - Iterating on a tuple... again - Stack Overflow c++ - What does this variadic template code doâ¦
åæåãã£ããã£(init-capture)ã§ãå¯å¤é·å¼æ°ãã³ãã¬ã¼ã(variadic templates)ããã£ããã£ãããã¨æã£ã¦èª¿ã¹ã¦ã®ã§ãããã§ããªãããã§ãããã£ããã£ããã©ã«ã(capture-defaultï¼ã¨åç´ãã£ããã£(simple-capture)ã§ãã£ããã£ãããã¨ã¯åºæ¥ã¾ãã â¦
åçãªå¤æ æ§ãæã£ãåã®ãªãã¸ã§ã¯ããã³ã³ããã§æ±ãããå ´åãåºæ¬ã¯ã©ã¹ã®åç §åã¾ãã¯åºæ¬ã¯ã©ã¹ã®ãã¤ã³ã¿åã®ã³ã³ããã使ããã¨ãã§ãã¾ã: #include <iostream> #include <memory> #include <vector> struct A { void disp() const { do_disp(); } private: virtual void do_</vector></memory></iostream>â¦
Scalaã«ããã¤ããC++ã®ç´¹ä» Scalaã«ã¯é¨åé©ç¨ãããé¢æ°ã¨ãããã®ãããã¾ããScalaã§ã¯å¿ è¦ãªå¼æ°ã渡ãã¦é¢æ°ãå¼ã³åºããã¨ããé¢æ°ãå¼æ°ã«é©ç¨ãã(apply)ã¨è¡¨ç¾ãã¾ããä¾ãã°: def sum(a: Int, b: Int, c: Int) = a + b + c ã¨ããé¢æ°ããã£ãã¨â¦
åç½®ã æè¿Scalaãåå¼·ãã¦ãã¾ããScalaåå¼·ãã¦ããæã«ãå¤æ°å®£è¨å¨ãã§C++ã§ãããæ¸ããããããªã¨æããã¨ã2ã¤ãã£ãã®ã§æãã¦ã¿ã¾ãã å¤æ°å®£è¨ã»å®ç¾©æã®åã®å¾ç½® é¢æ°ã®æ»ãå¤ã®åãå¾ç½®ã§ããã®ã ãããå¤æ°ã®åãå¾ç½®ã§æ¥ã¦ããããããªãããâ¦