
On Sun, 25 Jun 2006 11:37:51 -0400, David Abrahams <dave@boost-consulting.com> wrote:
The biggest argument for such a mechanism is that it should be more foolproof. I hope it causes a compile error if "array" turns out to be a pointer.
Yes, of course. I've reattached an implementation I proposed here a couple of years ago. The reason why I'm asking is basically that it would require some "somersault" to make it work with VC6 and other broken compilers, so I woldn't spend time on that if there is no interest. --Gennaro. begin 644 array_counter.hpp M+R\@+2T@87)R87E?8V]U;G1E<BYH<'`@+2T-"B\O#0HO+R`H0RD@1V5N;F%R M;R!0<F]T82`R,#`T#0HO+PT*+R\@(%5S92P@;6]D:69I8V%T:6]N+"!A;F0@ M9&ES=')I8G5T:6]N(&ES('-U8FIE8W0@=&\@=&AE($)O;W-T(%-O9G1W87)E M#0HO+R`@3&EC96YS92P@5F5R<VEO;B`Q+C`N("A3964@86-C;VUP86YY:6YG M(&9I;&4@3$E#14Y315\Q7S`N='AT(&]R(&-O<'D-"B\O("!A="!H='1P.B\O M=W=W+F)O;W-T+F]R9R],24-%3E-%7S%?,"YT>'0I#0HO+PT*+R\@("TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2T-"@T*(VEF M;F1E9B!-05E"15]"3T]35%]!4E)!65]#3U5.5$527TA04%]'4%\R,#`T,#$S M,`T*(V1E9FEN92!-05E"15]"3T]35%]!4E)!65]#3U5.5$527TA04%]'4%\R M,#`T,#$S,`T*#0HC:6YC;'5D92`\8W-T9&1E9CX-"@T*#0IN86UE<W!A8V4@ M;6%Y8F5?8F]O<W0@>PT*#0H@("`@=&5M<&QA=&4@/'-T9#HZ<VEZ95]T+"!T M>7!E;F%M93X-"B`@("!S=')U8W0@8V]U;G1?9&EM.PT*#0H@("`@=&5M<&QA M=&4@/'-T9#HZ<VEZ95]T(&1I;2P@='EP96YA;64@5"P@<W1D.CIS:7IE7W0@ M;CX-"B`@("!S=')U8W0@8V]U;G1?9&EM/&1I;2P@5%MN73X-"B`@("U8W0@8V]U M;G1?9&E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