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

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. ぼろんじ (boronology@social.penguinability.net)'s status on Monday, 12-Oct-2020 23:53:45 JST ぼろんじ ぼろんじ

    C++というとマクロとユーザ定義リテラルが衝突した場合の扱いがよくわからんままである。やるなという話だが。

    In conversation Monday, 12-Oct-2020 23:53:45 JST from social.penguinability.net permalink
    • らりお・ザ・何らかの🈗然㊌ソムリエ repeated this.
    • ぼろんじ (boronology@social.penguinability.net)'s status on Monday, 12-Oct-2020 23:55:34 JST ぼろんじ ぼろんじ
      in reply to

      #define SUFFIX "suffix"auto c = "prefix"SUFFIX;

      みたいなの。

      In conversation Monday, 12-Oct-2020 23:55:34 JST permalink
      らりお・ザ・何らかの🈗然㊌ソムリエ repeated this.
    • ぼろんじ (boronology@social.penguinability.net)'s status on Tuesday, 13-Oct-2020 00:01:10 JST ぼろんじ ぼろんじ
      in reply to

      https://wandbox.org/permlink/ATP0hCtKrUUYHRpc ・GCCはプリプロセッサを優先してくれるので"prefix""suffix"になって通る。(警告は出る)・Clangは「C++11では間に空白を入れろ」といってコンパイルエラー・MSVCはプリプロセッサ後もマクロのSUFFIXが置換されないうえで「ユーザ定義リテラルが見つからない」としてコンパイルエラー仕様上はGCCが正しい、のか?

      In conversation Tuesday, 13-Oct-2020 00:01:10 JST permalink

      Attachments

      1. Domain not in remote thumbnail source whitelist: wandbox.org
        [C++] clang HEAD 12.0.0 (https://github.com/llvm/llvm-projec - Wandbox
        from melpon, kikairoya
        #include #define SUFFIX "suffix" int main() { auto a = "prefix"SUFFIX; std::cout

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.