Bu bir constraint. Açıklaması şöyle
... concept like std::integral constrains the deduced type to be an integral type, such as int or long, but not float, or std::string.
Örnek
Şöyle yaparız
std::integral auto something(){
return 0;
}
int main(){
const auto x = something();
return x;
}
Hiç yorum yok:
Yorum Gönder