narrowing

Emacs: same buffer, two windows, one narrowed, one not

I find the narrow-to-region command useful, however it applies to the buffer and not to the current window. I'd like to have one window display a narrowed version of the buffer, while the buffer is displayed widened if it occurs in any other window. Is this possible? ...

G++ 4.5 Bug: No diagnostic for narrowing in initializer list

I tried the following code: int main() { int x {23.22}; } which includes an initialization that requires narrowing, but the code compiles fine without any error or warning. On the other hand, the following code gives error: int main() { int x[]{23.22}; } Have I found a bug or what? PS: I'm currently using GCC 4.5.0 ...

char and initializer lists

I'd like to pass some numeric byte values via an initializer list a variadic template into an array. Is that possible? template < int N > struct a { char s[N]; template < typename ... A > a (A ... _a) : s {_a...} {} }; int main () { // g++-4.5: error: narrowing conversion of »_a#0« from »int« to »char« inside { } a < 3 > x { ...