LoginSignup
0
0

More than 5 years have passed since last update.

C++N4741(227) 17.9.2.5 Deducing template arguments from a type [temp.deduct.type]p381

Posted at

はじめに(Introduction)

C++N4741 Working Draft, Standard for Programming Language C++
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n4741.pdf

C++N4741は、ISO/IEC JTC1 SC22 WG21の作業原案(Working Draft)です。
公式のISO/IEC 14882原本ではありません。
ISO/IEC JTC1 SC22 WG21では、可能な限り作業文書を公開し、幅広い意見を求めています。
一連の記事はコード断片をコンパイルできる形にする方法を検討してコンパイル、リンク、実行して、規格案の原文と処理系(g++, Clang++)との違いを確認し、技術内容を検討し、ISO/IEC JTC1 SC22 WG21にフィードバックするために用います。
Linux OSなどのhosted環境, TOPPERSカーネルなどのfreestanding環境におけるC++の機能と役割を確認したり、system CによるCPUの記述のtemplateによる再利用を検討しています。
CERT C++, MISRA C++等のコーディング標準のコード断片をコンパイルする際の参考にさせていただこうと考えています。CERT C++, MISRA C++が標準化の動きとの時間的なずれがあれば確認できれば幸いです。また、boostライブラリとの関連、g++(GCC), clang++(LLVM)との関係も調査中です。
何か、抜け漏れ、耳より情報がありましたらおしらせくださると幸いです。

背景(back ground)

C/C++でコンパイルエラーが出ると、途方にくれることがしばしばあります。
何回かに1回は、該当するエラーが検索できます。
ただ、条件が違っていて、そこでの修正方法では目的を達成しないこともしばしばです。いろいろな条件のコンパイルエラーとその対応方法について、広く記録することによって、いつか同じエラーに遭遇した時にやくに立つことを目指しています。

この半年の間で、三度、自分のネットでの記録に助けられたことがあります。
また過去に解決できなかった記録を10種類以上、最近になって解決できたことがあります。それは、主に次の4つの情報に基づいています。

https://stackoverflow.com
https://cpprefjp.github.io
http://ja.cppreference.com/
https://teratail.com/

また
https://researchmap.jp/joub9b3my-1797580/#_1797580
に記載したサイトのお世話になっています。

作業方針(sequence)

Clang++では-std=c++03, c++17, C++2aの3種類
g++では-std=c++03, c++17の2種類
でコンパイルし、

1)コンパイルエラーを収集する。
2)コンパイルエラーをなくす方法を検討する。
コンパイルエラーになる例を示すだけが目的のコードは、コンパイルエラーをなくすのではなく、コンパイルエラーの種類を収集するだけにする。
文法を示すのが目的のコード場合に、コンパイルエラーをなくすのに手間がかかる場合は、順次作業します。
3)リンクエラーをなくす方法を検討する。
文法を示すのが目的のコード場合に、リンクエラーをなくすのに手間がかかる場合は、順次作業します。
4)意味のある出力を作る。
コンパイル、リンクが通っても、意味のある出力を示そうとすると、コンパイル・リンクエラーが出て収拾できそうにない場合がある。順次作業します。

1)だけのものから4)まで進んだものと色々ある状態です。一歩でも前に進むご助言をお待ちしています。「検討事項」の欄に現状を記録するようにしています。

コーディング標準対応

コーディング標準の検討の下準備のコードとして、
コーディング標準を守って初期化をしてある方がいいという
考え方があります。
ここでは、逆に、コンパイラの警告がどれくらいコーディング標準の検査に役立つかを確かめたいという目的があります。

何か特別なコンパイラを使っていても、将来の可搬性を考えて、
g++, clang++, visual C++の三種類のコンパイラでコンパイルできるか、
三種類のコンパイラの警告は役立たないかを確認したい。

初期化をしない理由

しばしば変数は初期化していません。
初期化したとしても、なるべく0,1ではなく、それ以外の数を代入するようにしています。コンパイラが、どういう警告を出すか、あるいは場合によってはコンパイルエラーにするかなどを確かめるためです。
こういうコードを実際に書いて欲しいという例ではありません。

実行する理由

実行する意味があまりなさそうなコードを実行しているのは、実行時のエラーを収集する目的です。コンパイル・リンクは通っても、実行時のエラーに何が発生する可能性があるかを収集します。
万が一、実行時にリンクする仕組みや、空間を確保するとしたら、実行しないと振る舞いがわからないことがあります。

初めての CEDD(Compile Error Driven Design) 8回直してコンパイル。
https://qiita.com/kaizen_nagoya/items/9494236aa1753f3fd1e1

コンパイルエラーを記録するとよい理由7つ
https://qiita.com/kaizen_nagoya/items/85c0e92b206883140e89

C++N4741, 2018 Standard Working Draft on ISO/IEC 14882 sample code compile list

C++N4606, 2016符号断片編纂一覧(example code compile list)

C++N4606, 2016 Working Draft 2016, ISO/IEC 14882, C++ standard(1) Example code compile list
https://qiita.com/kaizen_nagoya/items/df5d62c35bd6ed1c3d43/

C++N3242, 2011 sample code compile list on clang++ and g++

編纂器(Compiler)

clang++ --version

clang version 6.0.0 (tags/RELEASE_600/final)
Target: x86_64-apple-darwin17.4.0

g++-8 --version

g++-8 (Homebrew GCC 8.1.0) 8.1.0
Copyright (C) 2018 Free Software Foundation, Inc.

(227) 17.9.2.5 Deducing template arguments from a type [temp.deduct.type]p381

C++N4606, 2016(206)14.8.2.5 Deducing template arguments from a type [temp.deduct.type]p419
https://qiita.com/kaizen_nagoya/items/0e0a433e6826cdd5abb9

C++N3242 have no example code.

p381.cpp

算譜(source code)

p381.cpp
// C++N4741 Committee Draft, Standard for Programming Language C++
// http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/n741.pdf
const char* msg= "C++N4741(227) 17.9.2.5 Deducing template arguments from a type [temp.deduct.type]p381.cpp";
// Edited by Dr. Ogawa Kiyoshi. Compile procedure and results record.

#include <iostream>
#include <cstdlib>

using namespace std;

namespace N {
  template<class T> void g(T);
  g({1,2,3}); // error: no argument deduced for T
}

namespace M {
  template<class T> void f(T x, T y) { /* ... */ }
  struct A { /* ... */
  };
  struct B : A { /* ... */
  };
  void g(A a, B b) {
    f(a,b); // error: T could be A or B
    f(b,a); // error: T could be A or B
    f(a,a); // OK: T is A
    f(b,b); // OK: T is B
  }
}

namespace P {
  template <class T, class U> void f( T (*)( T, U, U ) );
  int g1( int, float, float);
  char g2( int, float, float);
  int g3( int, char, float);
  void r() {
    f(g1); // OK: T is int and U is float
    f(g2); // error: T could be char or int
    f(g3); // error: U could be char or float
  }
}

namespace Q {
  template<class T> void f(const T*) { }
  int* p;
  void s() {
    f(p); // f(const int*)
  }
}

namespace R {
  template <class T> struct B { };
  template <class T> struct D : public B<T> {};
  struct D2 : public B<int> {};
  template <class T> void f(B<T>&) {}
  void t() {
    D<int> d;
    D2 d2;
    f(d); // calls f(B<int>&)
    f(d2); // calls f(B<int>&)
  }
}

namespace S {
  template<class T1, class... Z> class S; // #1
  template<class T1, class... Z> class S<T1, const Z&...> { }; // #2
  template<class T1, class T2> class S<T1, const T2&> { }; // #3
  S<int, const int&> s; // both #2 and #3 match; #3 is more specialized
  template<class T, class... U> struct A { }; // #1
  template<class T1, class T2, class... U> struct A<T1, T2*, U...> { }; // #2
  template<class T1, class T2> struct A<T1, T2> { }; // #3
  template struct A<int, int*>; // selects #2
}

namespace U {
  template <class T> void f(T&&);
  template <> void f(int&) { } // #1
  template <> void f(int&&) { } // #2
  void g(int i) {
    f(i); // calls f<int&>(int&), i.e., #1
    f(0); // calls f<int>(int&&), i.e., #2
  }
}

namespace V {
  template<class T, class... U> void f(T*, U...) { } // #1
  template<class T> void f(T) { } // #2
  template void f(int*); // selects #1
}

namespace W {
  template<long n> struct A { };
  template<typename T> struct C;
  template<typename T, T n> struct C<A<n>> {
    using Q = T;
  };
  using R = long;
  using R = C<A<2>>::Q; // OK; T was deduced to long from the
// template argument value in the type A<2>
}

namespace Z {
  template<typename T> struct S;
  template<typename T, T n> struct S<int[n]> {
    using Q = T;
  };
  using V = decltype(sizeof 0);
  using V = S<int[42]>::Q; // OK; T was deduced to std::size_t from the type int[42]
}

namespace O {
  template<class T, T i> void f(int (&a)[i]);
  int v[10];
  void g() {
    f(v); // OK: T is std::size_t
  }
}

namespace L {
  template<int i> void f1(int a[10][i]);
  template<int i> void f2(int a[i][20]);
  template<int i> void f3(int (&a)[i][20]);
  void g() {
    int v[10][20];
    f1(v); // OK: i deduced to be 20
    f1<20>(v); // OK
    f2(v); // error: cannot deduce template-argument i
    f2<10>(v); // OK
    f3(v); // OK: i deduced to be 10
  }
}

namespace K {
  template <int i> class A { /* ... */
  };
  template <int i> void g(A<i+1>);
  template <int i> void f(A<i>, A<i+1>);
  void k() {
    A<1> a1;
    A<2> a2;
    g(a1); // error: deduction fails for expression i+1
    g<0>(a1); // OK
    f(a1, a2); // OK
  }
}

namespace J {
  template<int i, typename T>
  T deduce(typename A<T>::X x, // T is not deduced here
           T t, // but T is deduced here
           typename B<i>::Y y); // i is not deduced here
  A<int> a;
  B<77> b;
  int x = deduce<77>(a.xm, 62, b.ym);
// T is deduced to be int, a.xm must be convertible to A<int>::X
// i is explicitly specified to be 77, b.ym must be convertible to B<77>::Y
}

namespace H {
  template<int i> class A { /* ... */
  };
  template<short s> void f(A<s>);
  void k1() {
    A<1> a;
    f(a); // error: deduction fails for conversion from int to short
    f<1>(a); // OK
  }
  template<const short cs> class B { };
  template<short s> void g(B<s>);
}

namespace G {
  void k2() {
    B<1> b;
    g(b); // OK: cv-qualifiers are ignored on template parameter types
  }
}

namespace F {
  template<class T> void f(void(*)(T,int));
  template<class T> void foo(T,int);
  void g(int,int);
  void g(char,int);
  void h(int,int,int);
  void h(char,int);
  int m() {
    f(&g); // error: ambiguous
    f(&h); // OK: void h(char,int) is a unique match
    f(&foo); // error: type deduction fails because foo is a template
  }
}

namespace E {
  template <class T> void f(T = 5, T = 7);
  void g() {
    f(1); // OK: call f<int>(1,7)
    f(); // error: cannot deduce T
    f<int>(); // OK: call f<int>(5,7)
  }
}

namespace D {
  template <template <class T> class X> struct A { };
  template <template <class T> class X> void f(A<X>) { }
  template<class T> struct B { };
  A<B> ab;
  f(ab); // calls f(A<B>)
}

namespace C {
  template<class> struct X { };
  template<class R, class ... ArgTypes> struct X<R(int, ArgTypes ...)> { };
  template<class ... Types> struct Y { };
  template<class T, class ... Types> struct Y<T, Types& ...> { };
  template<class ... Types> int f(void (*)(Types ...));
  void g(int, float);
  X<int> x1; // uses primary template
  X<int(int, float, double)> x2; // uses partial specialization; ArgTypes contains float, double
  X<int(float, int)> x3; // uses primary template
  Y<> y1; // use primary template; Types is empty
  Y<int&, float&, double&> y2; // uses partial specialization; T is int&, Types contains float, double
  Y<int, float, double> y3; // uses primary template; Types contains int, float, double
  int fv = f(g); // OK; Types contains int, float
}

int main() {

  cout << msg << endl;
  return EXIT_SUCCESS;
}

編纂・実行結果(compile and go)

c1g.sh
$ ../c1g.sh p381
$ g++ p381.cpp  -std=c++2a -Wall
p381.cpp:13:2: error: expected constructor, destructor, or type conversion before '(' token
 g({1,2,3}); // error: no argument deduced for T
  ^
p381.cpp:13:10: error: expected unqualified-id before ')' token
 g({1,2,3}); // error: no argument deduced for T
          ^
p381.cpp: In function 'void M::g(M::A, M::B)':
p381.cpp:21:6: error: no matching function for call to 'f(M::A&, M::B&)'
 f(a,b); // error: T could be A or B
      ^
p381.cpp:17:24: note: candidate: 'template<class T> void M::f(T, T)'
 template<class T> void f(T x, T y) { /* ... */ }
                        ^
p381.cpp:17:24: note:   template argument deduction/substitution failed:
p381.cpp:21:6: note:   deduced conflicting types for parameter 'T' ('M::A' and 'M::B')
 f(a,b); // error: T could be A or B
      ^
p381.cpp:22:6: error: no matching function for call to 'f(M::B&, M::A&)'
 f(b,a); // error: T could be A or B
      ^
p381.cpp:17:24: note: candidate: 'template<class T> void M::f(T, T)'
 template<class T> void f(T x, T y) { /* ... */ }
                        ^
p381.cpp:17:24: note:   template argument deduction/substitution failed:
p381.cpp:22:6: note:   deduced conflicting types for parameter 'T' ('M::B' and 'M::A')
 f(b,a); // error: T could be A or B
      ^
p381.cpp: In function 'void P::r()':
p381.cpp:35:5: error: no matching function for call to 'f(char (&)(int, float, float))'
 f(g2); // error: T could be char or int
     ^
p381.cpp:29:34: note: candidate: 'template<class T, class U> void P::f(T (*)(T, U, U))'
 template <class T, class U> void f( T (*)( T, U, U ) );
                                  ^
p381.cpp:29:34: note:   template argument deduction/substitution failed:
p381.cpp:35:5: note:   deduced conflicting types for parameter 'T' ('char' and 'int')
 f(g2); // error: T could be char or int
     ^
p381.cpp:36:5: error: no matching function for call to 'f(int (&)(int, char, float))'
 f(g3); // error: U could be char or float
     ^
p381.cpp:29:34: note: candidate: 'template<class T, class U> void P::f(T (*)(T, U, U))'
 template <class T, class U> void f( T (*)( T, U, U ) );
                                  ^
p381.cpp:29:34: note:   template argument deduction/substitution failed:
p381.cpp:36:5: note:   deduced conflicting types for parameter 'U' ('char' and 'float')
 f(g3); // error: U could be char or float
     ^
p381.cpp: At global scope:
p381.cpp:69:17: error: ambiguous template instantiation for 'struct S::A<int, int*>'
 template struct A<int, int*>; // selects #2
                 ^~~~~~~~~~~~
p381.cpp:67:49: note: candidates are: 'template<class T1, class T2, class ... U> struct S::A<T1, T2*, U ...> [with T1 = int; T2 = int; U = {}]'
 template<class T1, class T2, class... U> struct A<T1, T2*, U...> { }; // #2
                                                 ^~~~~~~~~~~~~~~~
p381.cpp:68:37: note:                 'template<class T1, class T2> struct S::A<T1, T2> [with T1 = int; T2 = int*]'
 template<class T1, class T2> struct A<T1, T2> { }; // #3
                                     ^~~~~~~~~
p381.cpp:69:17: error: explicit instantiation of 'struct S::A<int, int*>' before definition of template
 template struct A<int, int*>; // selects #2
                 ^~~~~~~~~~~~
p381.cpp:85:15: error: ambiguous template specialization 'f<>' for 'void V::f(int*)'
 template void f(int*); // selects #1
               ^
p381.cpp:83:36: note: candidates are: 'template<class T, class ... U> void V::f(T*, U ...)'
 template<class T, class... U> void f(T*, U...) { } // #1
                                    ^
p381.cpp:84:24: note:                 'template<class T> void V::f(T)'
 template<class T> void f(T) { } // #2
                        ^
p381.cpp: In function 'void L::g()':
p381.cpp:124:5: error: no matching function for call to 'f2(int [10][20])'
 f2(v); // error: cannot deduce template-argument i
     ^
p381.cpp:118:22: note: candidate: 'template<int i> void L::f2(int (*)[20])'
 template<int i> void f2(int a[i][20]);
                      ^~
p381.cpp:118:22: note:   template argument deduction/substitution failed:
p381.cpp:124:5: note:   couldn't deduce template parameter 'i'
 f2(v); // error: cannot deduce template-argument i
     ^
p381.cpp: In function 'void K::k()':
p381.cpp:137:5: error: no matching function for call to 'g(K::A<1>&)'
 g(a1); // error: deduction fails for expression i+1
     ^
p381.cpp:132:23: note: candidate: 'template<int i> void K::g(K::A<(i + 1)>)'
 template <int i> void g(A<i+1>);
                       ^
p381.cpp:132:23: note:   template argument deduction/substitution failed:
p381.cpp:137:5: note:   couldn't deduce template parameter 'i'
 g(a1); // error: deduction fails for expression i+1
     ^
p381.cpp: At global scope:
p381.cpp:145:19: error: expected nested-name-specifier before 'A'
 T deduce(typename A<T>::X x, // T is not deduced here
                   ^
p381.cpp:145:19: error: expected '(' before 'A'
 T deduce(typename A<T>::X x, // T is not deduced here
                   ^
                   (
p381.cpp:146:3: error: expected primary-expression before 't'
 T t, // but T is deduced here
   ^
p381.cpp:147:10: error: expected nested-name-specifier before 'B'
 typename B<i>::Y y); // i is not deduced here
          ^
p381.cpp:147:10: error: expected '(' before 'B'
 typename B<i>::Y y); // i is not deduced here
          ^
          (
p381.cpp:148:1: error: 'A' does not name a type
 A<int> a;
 ^
p381.cpp:149:1: error: 'B' does not name a type
 B<77> b;
 ^
p381.cpp:150:9: error: wrong number of template arguments (1, should be 2)
 int x = deduce<77>(a.xm, 62, b.ym);
         ^~~~~~~~~~
p381.cpp:145:19: note: provided for 'template<int i, class T> T J::deduce<i, T>'
 T deduce(typename A<T>::X x, // T is not deduced here
                   ^
p381.cpp:150:20: error: 'a' was not declared in this scope
 int x = deduce<77>(a.xm, 62, b.ym);
                    ^
p381.cpp:150:30: error: 'b' was not declared in this scope
 int x = deduce<77>(a.xm, 62, b.ym);
                              ^
p381.cpp: In function 'void H::k1()':
p381.cpp:160:4: error: no matching function for call to 'f(H::A<1>&)'
 f(a); // error: deduction fails for conversion from int to short
    ^
p381.cpp:157:24: note: candidate: 'template<short int s> void H::f(H::A<s>)'
 template<short s> void f(A<s>);
                        ^
p381.cpp:157:24: note:   template argument deduction/substitution failed:
p381.cpp:160:4: note:   mismatched types 'short int' and 'int'
 f(a); // error: deduction fails for conversion from int to short
    ^
p381.cpp: In function 'void G::k2()':
p381.cpp:169:1: error: 'B' was not declared in this scope
 B<1> b;
 ^
p381.cpp:169:1: note: suggested alternatives:
p381.cpp:19:8: note:   'M::B'
 struct B : A { /* ... */ };
        ^
p381.cpp:49:27: note:   'R::B'
 template <class T> struct B { };
                           ^
p381.cpp:163:32: note:   'H::B'
 template<const short cs> class B { };
                                ^
p381.cpp:169:6: error: 'b' was not declared in this scope
 B<1> b;
      ^
p381.cpp:170:1: error: 'g' was not declared in this scope
 g(b); // OK: cv-qualifiers are ignored on template parameter types
 ^
p381.cpp:170:1: note: suggested alternatives:
p381.cpp:12:24: note:   'N::g'
 template<class T> void g(T);
                        ^
p381.cpp:20:6: note:   'M::g'
 void g(A a, B b) {
      ^
p381.cpp:76:6: note:   'U::g'
 void g(int i) {
      ^
p381.cpp:111:6: note:   'O::g'
 void g() {
      ^
p381.cpp:120:6: note:   'L::g'
 void g() {
      ^
p381.cpp:132:23: note:   'K::g'
 template <int i> void g(A<i+1>);
                       ^
p381.cpp:164:24: note:   'H::g'
 template<short s> void g(B<s>);
                        ^
p381.cpp: In function 'int F::m()':
p381.cpp:182:5: error: no matching function for call to 'f(<unresolved overloaded function type>)'
 f(&g); // error: ambiguous
     ^
p381.cpp:175:24: note: candidate: 'template<class T> void F::f(void (*)(T, int))'
 template<class T> void f(void(*)(T,int));
                        ^
p381.cpp:175:24: note:   template argument deduction/substitution failed:
p381.cpp:182:5: note:   couldn't deduce template parameter 'T'
 f(&g); // error: ambiguous
     ^
p381.cpp:184:7: error: no matching function for call to 'f(<unresolved overloaded function type>)'
 f(&foo); // error: type deduction fails because foo is a template
       ^
p381.cpp:175:24: note: candidate: 'template<class T> void F::f(void (*)(T, int))'
 template<class T> void f(void(*)(T,int));
                        ^
p381.cpp:175:24: note:   template argument deduction/substitution failed:
p381.cpp:184:7: note:   couldn't deduce template parameter 'T'
 f(&foo); // error: type deduction fails because foo is a template
       ^
p381.cpp:185:1: warning: no return statement in function returning non-void [-Wreturn-type]
 }
 ^
p381.cpp: In function 'void E::g()':
p381.cpp:192:3: error: no matching function for call to 'f()'
 f(); // error: cannot deduce T
   ^
p381.cpp:189:25: note: candidate: 'template<class T> void E::f(T, T)'
 template <class T> void f(T = 5, T = 7);
                         ^
p381.cpp:189:25: note:   template argument deduction/substitution failed:
p381.cpp:192:3: note:   couldn't deduce template parameter 'T'
 f(); // error: cannot deduce T
   ^
p381.cpp: At global scope:
p381.cpp:202:2: error: expected constructor, destructor, or type conversion before '(' token
 f(ab); // calls f(A<B>)
  ^

検討事項(agenda)

役に立つまたは意味のあるコンパイルエラーの取り方
役に立つまたは意味のある他の出力

参考資料(reference)

docker gnu(gcc/g++) and llvm(clang/clang++)
https://qiita.com/drafts/059874ea39c4de64c0f7

[C][C++]の国際規格案の例題をコンパイルするときの課題7つ。
https://qiita.com/kaizen_nagoya/items/5f4b155030259497c4de

C++N4606 Working Draft 2016, ISO/IEC 14882, C++ standardのコード断片をコンパイルするためにしていること
https://qiita.com/kaizen_nagoya/items/a8d7ee2f2e29e76c19c1

コンパイル用shell script C版(clangとgcc)とC++版(clang++とg++)
https://qiita.com/kaizen_nagoya/items/74220c0577a512c2d7da

Clang/Clang++(LLVM) gcc/g++(GNU) コンパイラ警告等比較
https://qiita.com/kaizen_nagoya/items/9a82b958cc3aeef0403f

C++2003とC++2017でコンパイルエラーになるならない事例集
https://qiita.com/kaizen_nagoya/items/a13ea3823441c430edff

Qiitaに投稿するCのStyle例(暫定)
https://qiita.com/kaizen_nagoya/items/946df1528a6a1ef2bc0d

cpprefjpのdecltypeをコンパイル試験
https://qiita.com/kaizen_nagoya/items/090909af702f0d5d8a67

MISRA C++ 5-0-16
https://qiita.com/kaizen_nagoya/items/7df2d4e05db724752a74

C++ Templates Part1 BASICS Chapter 3. Class Templates 3.2 Use of Class Template Stack stack1test.cpp
https://qiita.com/kaizen_nagoya/items/cd5fc49106fad5a4e9ed

ISO/IEC TS 17961:2013 C Secure Coding Rules(1) All list(to be confirmed)
https://qiita.com/kaizen_nagoya/items/54e056195c4f11b850a1

C言語(C++)に対する誤解、曲解、無理解、爽快。
https://qiita.com/kaizen_nagoya/items/3f3992c9722c1cee2e3a

C Puzzle Bookの有り難み5つ、C言語規格及びCコンパイラの特性を認識
https://qiita.com/kaizen_nagoya/items/d89a48c1536a02ecdec9

'wchar.h' file not found で困った clang++ macOS
https://qiita.com/kaizen_nagoya/items/de15cd46d657517fac11

Open POSIX Test Suiteの使い方を調べはじめました
https://qiita.com/kaizen_nagoya/items/644d5e407f5faf96e6dc

MISRA-C 2012 Referenceに掲載している文献の入手可能性を確認
https://qiita.com/kaizen_nagoya/items/96dc8b125e462d5575bb

どうやって MISRA Example Suiteをコンパイルするか
https://qiita.com/kaizen_nagoya/items/fbdbff5ff696e2ca7f00

MISRA C まとめ #include
https://qiita.com/kaizen_nagoya/items/f1a79a7cbd281607c7c9

「C++完全理解ガイド」の同意できること上位10
https://qiita.com/kaizen_nagoya/items/aa5744e0c4a8618c7671

文書履歴(document history)

ver. 0.10 初稿 20180603

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0