senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. 艮 鮟鱇 (anqou@mstdn.anqou.net)'s status on Sunday, 22-Nov-2020 14:40:03 JST 艮 鮟鱇 艮 鮟鱇

    うおーC++分からん

    In conversation Sunday, 22-Nov-2020 14:40:03 JST from mstdn.anqou.net permalink
    • 艮 鮟鱇 (anqou@mstdn.anqou.net)'s status on Sunday, 22-Nov-2020 14:40:03 JST 艮 鮟鱇 艮 鮟鱇
      in reply to

      https://wandbox.org/permlink/QY5UpDILGHQurkXJ これでHOHOHOHOが出力されるので爆笑してる

      In conversation Sunday, 22-Nov-2020 14:40:03 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: wandbox.org
        [C++] clang 9.0.0 - Wandbox
        from melpon, kikairoya
        #include using namespace std; template struct hoge { hoge () {} template hoge(A& rng) { std::cerr
    • らりお・ザ・何らかの🈗然㊌ソムリエ (lo48576@mastodon.cardina1.red)'s status on Sunday, 22-Nov-2020 14:40:03 JST らりお・ザ・何らかの🈗然㊌ソムリエ らりお・ザ・何らかの🈗然㊌ソムリエ
      in reply to

      @anqou https://wandbox.org/permlink/ID6B7DhkWf0TLwrN

      単に copy ctor として呼ばれてるだけなので、明示的に copy ctor を定義すれば良いだけの気がしますが

      In conversation Sunday, 22-Nov-2020 14:40:03 JST permalink

      Attachments


    • 艮 鮟鱇 (anqou@mstdn.anqou.net)'s status on Sunday, 22-Nov-2020 14:51:37 JST 艮 鮟鱇 艮 鮟鱇
      in reply to
      • らりお・ザ・何らかの🈗然㊌ソムリエ

      @lo48576 あーそう言われればそうですね。ありがとうございます。

      In conversation Sunday, 22-Nov-2020 14:51:37 JST permalink
    • 艮 鮟鱇 (anqou@mstdn.anqou.net)'s status on Sunday, 22-Nov-2020 14:51:37 JST 艮 鮟鱇 艮 鮟鱇
      in reply to
      • らりお・ザ・何らかの🈗然㊌ソムリエ

      @lo48576 と思ったけどcopy ctor作ってもtemplateのほうが呼ばれますねこれ https://wandbox.org/permlink/ByXyIYuo0mRiNjnU

      In conversation Sunday, 22-Nov-2020 14:51:37 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: wandbox.org
        [C++] clang 9.0.0 - Wandbox
        from melpon, kikairoya
        #include using namespace std; template struct hoge { hoge () {} hoge (const hoge&) {} template hoge(A& rng) { std::cerr
    • らりお・ザ・何らかの🈗然㊌ソムリエ (lo48576@mastodon.cardina1.red)'s status on Sunday, 22-Nov-2020 14:51:37 JST らりお・ザ・何らかの🈗然㊌ソムリエ らりお・ザ・何らかの🈗然㊌ソムリエ
      in reply to

      @anqou https://wandbox.org/permlink/6XKMvCZ2MHdamFM0template<> で const hoge<P>& にマッチさせても駄目で、 hoge<P>& だといけました……厄介

      In conversation Sunday, 22-Nov-2020 14:51:37 JST permalink

      Attachments


Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.