Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.std.c++ > #100

valarray computed assignment - arrays of different sizes

Message-ID <90jvqmFhg6U15@mid.individual.net> (permalink)
Newsgroups comp.std.c++
From Ian Collins <ian-news@hotmail.com>
Subject valarray computed assignment - arrays of different sizes
Organization unknown
Date 2011-04-13 13:06 -0600

Show all headers | View raw


In section 26.6.2.7 valarray computed assignment, paragraph 3 states

"If the array and the argument array do not have the same length, the
behavior is undefined."

Is there a good reason why equal length should not be a requirement?

The same applies to binary operators (26.6.3.1) and logical operators
(26.6.3.2).

-- 
Ian Collins


[ comp.std.c++ is moderated.  To submit articles, try posting with your ]
[ newsreader.  If that fails, use mailto:std-cpp-submit@vandevoorde.com ]
[              --- Please see the FAQ before posting. ---               ]
[ FAQ: http://www.comeaucomputing.com/csc/faq.html                      ]

Back to comp.std.c++ | Previous | NextNext in thread | Find similar


Thread

valarray computed assignment - arrays of different sizes  Ian Collins <ian-news@hotmail.com> - 2011-04-13 13:06 -0600
  Re: valarray computed assignment - arrays of different sizes Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-04-14 13:12 -0600
    Re: valarray computed assignment - arrays of different sizes  Ian Collins <ian-news@hotmail.com> - 2011-04-14 17:18 -0600
      Re: valarray computed assignment - arrays of different sizes  Daniel Krügler <daniel.kruegler@googlemail.com> - 2011-04-15 13:17 -0600
        Re: valarray computed assignment - arrays of different sizes Ian Collins<ian-news@hotmail.com> - 2011-04-18 13:07 -0600
          Re: valarray computed assignment - arrays of different sizes Daniel Krügler<daniel.kruegler@googlemail.com> - 2011-04-20 14:06 -0600

csiph-web