List:MySQL++« Previous MessageNext Message »
From:Tomalak Geret'kal Date:March 23 2011 2:16pm
Subject:Re: (OT) growth behavior of std::vector
View as plain text  
On 23/03/2011 14:11, Warren Young wrote:
> Some of the language in the Standard allows the
> implementation to cause monkeys to fly out the USB port.
>
> One way to react to that possibility is to wrap all uses of
> unspecified library behavior with an infinite series of
> conditionals:
>
> if (monkeys_fly_out_of_the_usb_port()) {
> ...
> }
> else if (phase_of_the_moon_is_waxing_gibbous()) {
> ...
> }
>
> A more reasonable reaction is to learn the actual behavior
> of our tools and make reasoned decisions about how likely
> those behaviors are to change. If the likelihood is low,
> assume the behavior won't change.

The most realistic and practical way to deal with UB (which 
is what you are talking about) is to *not write UB code*.

Making assumptions about how an environment will respond to 
your UB code is total suicide and will lead to your product 
crashing on your customer, perhaps months down the line. And 
it's ridiculously easy to avoid.

Tom
Thread
StoreQueryResults destructor runs without end...Paul Dalach22 Mar
Re: StoreQueryResults destructor runs without end...Dino Korah22 Mar
  • Re: StoreQueryResults destructor runs without end...Paul Dalach23 Mar
    • Re: StoreQueryResults destructor runs without end...Warren Young23 Mar
      • Re: StoreQueryResults destructor runs without end...Warren Young23 Mar
        • Re: StoreQueryResults destructor runs without end...Tomalak Geret'kal23 Mar
          • Re: StoreQueryResults destructor runs without end...Mickael Wolff23 Mar
            • Re: StoreQueryResults destructor runs without end...Tomalak Geret'kal23 Mar
              • Re: StoreQueryResults destructor runs without end...Mickael Wolff23 Mar
                • Re: StoreQueryResults destructor runs without end...Tomalak Geret'kal23 Mar
          • Re: StoreQueryResults destructor runs without end...Warren Young23 Mar
            • Re: StoreQueryResults destructor runs without end...Tomalak Geret'kal23 Mar
              • List etiquette - please use good email subjects :)Joel Fielder23 Mar
                • Re: List etiquette - please use good email subjects :)Tomalak Geret'kal23 Mar
                  • Re: List etiquette - please use good email subjects :)Paul Dalach23 Mar
                    • Re: List etiquette - please use good email subjects :)Dino Korah23 Mar
                      • Re: StoreQueryResults destructor runs without end...Paul Dalach23 Mar
                      • Re: StoreQueryResults destructor runs without end...F.N. Bruggeman23 Mar
                    • Re: List etiquette - please use good email subjects :)Joel Fielder23 Mar
              • Re: growth behavior of std::vectorWarren Young23 Mar
                • Re: growth behavior of std::vectorTomalak Geret'kal23 Mar
                  • Re: growth behavior of std::vectorJonathan Wakely23 Mar
                    • Re: (OT) growth behavior of std::vectorTomalak Geret'kal23 Mar
                      • Re: (OT) growth behavior of std::vectorJonathan Wakely23 Mar
                • Re: (OT) growth behavior of std::vectorTomalak Geret'kal23 Mar
            • Re: StoreQueryResults destructor runs without end...Tomalak Geret'kal23 Mar
              • re: (OT) growth behaviour of std::vector [was Re: StoreQueryResultsdestructor runs without end...]Tomalak Geret'kal23 Mar
        • Re: StoreQueryResults destructor runs without end...Warren Young23 Mar
Re: StoreQueryResults destructor runs without end...Dino Korah23 Mar