spamsink: (Default)
[personal profile] spamsink

#include <algorithm>
struct A { int a; };
struct B { long b; };
struct C { char data[std::max(sizeof(A), sizeof(B))]; }; 


Компилируем: line 4: error: array bound is not an integer constant

Subj.

Я понимаю, почему это происходит, но не понимаю, какого рожна это можно терпеть.
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting
Page generated Mar. 5th, 2026 07:46 pm
Powered by Dreamwidth Studios