Advertisement
Guest User

Untitled

a guest
Jun 3rd, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 28.53 KB | None | 0 0
  1. X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on host.domain.com
  2. X-Spam-Level: *
  3. X-Spam-Status: No, score=1.9 required=5.0 tests=BAYES_00,BOGUS_MIME_VERSION,
  4. DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,HTML_MESSAGE,
  5. KAM_SHORT,SPF_HELO_PASS,SPF_PASS,T_KAM_HTML_FONT_INVALID,
  6. T_REMOTE_IMAGE autolearn=no autolearn_force=no version=3.4.2
  7. X-3phase-MailScanner-From: car.rental.cheap@energytome.com
  8. X-3phase-MailScanner: Found to be clean
  9. X-3phase-MailScanner-ID: x4VGiKGh011794
  10. X-3phase-MailScanner-Information: Please contact the ISP for more information
  11. Return-Path: <car.rental.cheap@energytome.com>
  12. Received: from stone.energytome.com (stone.energytome.com [216.144.242.51])
  13. by host.domain.com (8.14.7/8.14.7) with ESMTP id x4VGiKGh011794
  14. for <user@domain.com>; Fri, 31 May 2019 16:44:21 GMT
  15. DKIM-Filter: OpenDKIM Filter v2.11.0 host.domain.com x4VGiKGh011794
  16. Authentication-Results: host.domain.com;
  17. dkim=pass (1024-bit key) header.d=energytome.com header.i=car.rental.cheap@energytome.com header.b="QhQjQKD7"
  18. DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; s=niecsv80; d=energytome.com;
  19. h=MIME-Version:To:Message-ID:From:Subject:Reply-To:Content-Type:Date;
  20. i=car.rental.cheap@energytome.com;
  21. bh=nnHsmAcOXbL9KPFU8VQTxsTwOGo=;
  22. b=QhQjQKD70LfmRsIUAoB8S5D2B+ijtS25cQfaojnm4dzBZUU3LUfENb5SfSoDjcXE9qzyKzj9WK0J
  23. b8R5IDmrAeP5NatRcQbDFzHf6U98JjoU4e0mkN4r2NTMwoi6YY0CHUvpvBA6xWIa1m1mGDMKU2Zp
  24. fvVt0LH0W/L1xf/HN8s=
  25. MIME-Version: 1
  26. To: user@domain.com
  27. Message-ID: <3KTXVUrBVMbsI5m2FPjbgbI3s@stone.energytome.com>
  28. From: Car Rental Cheap <car.rental.cheap@energytome.com>
  29. Subject: Car rental vocuhers - from 8/day
  30. Reply-To: car.rental.cheap@energytome.com
  31. Content-Type: multipart/alternative; boundary="===============25229528596612659549=="
  32. Date: Fri, 31 May 2019 12:44:39 -0400
  33.  
  34.  
  35.  
  36. --===============25229528596612659549==
  37. Content-type: text/plain; charset="UTF-8"
  38. Content-transfer-encoding: 8bit
  39.  
  40. You have (95) LinkedIn Connections. Please see them to confirm.
  41.  
  42. that you would never be able to drink a can of coke ever again. if the was really that good.
  43.  
  44.  
  45. --CHEAP & DISCOUNTED CAR RENTALS---
  46. ------------------------------------------------------------
  47.  
  48. DMV (https://dmv.ny.gov/registration/renew-registration)
  49. Find unbeatable car rental deals in a variety of sizes with convenient drop-off locations.
  50.  
  51. Rent a Car From 8.99/Day
  52.  
  53. http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/homeView Car Rental Coupons (http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home)
  54.  
  55. --------------------------------
  56.  
  57. http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home
  58.  
  59. TOP BRANDS YOU LOVE FROM 8.99/RENTALS
  60.  
  61. http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/homeView Discounted Car Rentals (http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home)
  62.  
  63.  
  64. to see the abs i got hidden in there haha. thanks for the input! i am starting to integrate some cardio in my life but.
  65.  
  66.  
  67. http://blog.energytome.com/
  68.  
  69. This answer is inaccurate concerning C. In C, anifstatement's conditional must be a scalar type (not a class instance -- C has no concept of "convertible"). So this particular question, involving a struct convertible to a scalar type, is not applicable in C; i.e. C++ can handle it any way it likes and still maintain compatibility with C. No matter what is done, it would not be how C does it. In fact, the use of explicit conversions was not even how C++ handledifstatements until C++11.JaMiT (https://stackoverflow.com/users/9837301/jamit) Jun 7 at 2:33 (https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88472210_50729291) *
  70.  
  71. I did not say that C does conversions inifstatements. I'm trying to explain why the behavior described in the question is exactly what one would expect given how floats and pointers are treated in both languages. C is applicable here because that's the language that set the precedent. As someone who learned C before C++, it seems obvious to me that this is the reasoning that the OP is looking for.luther (https://stackoverflow.com/users/3574628/luther) Jun 7 at 4:40 (https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88473827_50729291)
  72. *
  73.  
  74. The word "obvious" is overused. For example, the behavior is not whatIwould expect given how floats and pointers are treated in both languages. As someone who learned C before C++, it seems to me that these conclusions are wrong, hencenotwhat the OP is looking for.JaMiT (https://stackoverflow.com/users/9837301/jamit) Jun 7 at 6:43 (https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88476776_50729291)
  75. *
  76.  
  77. To clarify: the behavior forifstatements is not what I would expect. If talking about just the behavior ofswitchstatements, then sure, it's the same in both languages. But that does not really address the question of whyiflooks at explicit conversions butswitchdoes not.JaMiT (https://stackoverflow.com/users/9837301/jamit) Jun 7 at 6:49 (https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88476999_50729291)
  78. *
  79.  
  80. Another clarification: I have no issues with the rationale for why this behavior is reasonable. It's the (boldface) assertion that "this is how C does it" that I am questioning. From my perspective, this answer would be fine if the mentions of C were dropped.JaMiT (https://stackoverflow.com/users/9837301/jamit) Jun 7 at 7:04 (https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88477524_50729291)
  81.  
  82. --===============25229528596612659549==
  83. Content-Type: text/html; charset="UTF-8"
  84. Content-transfer-encoding: 8bit
  85.  
  86. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  87. <html xmlns="http://www.w3.org/1999/xhtml">
  88. <head>
  89. <meta http-equiv="Content-Type" content="text/html;charset=utf-8">
  90. <meta name="HandheldFriendly" content="true">
  91. <meta name="viewport" content="width=device-width; initial-scale=0.666667; maximum-scale=0.666667; user-scalable=0">
  92. <meta name="viewport" content="width=device-width">
  93. <title></title>
  94. <style type="text/css">
  95. @media only screen and (max-width:512px) {
  96. ..email-container {
  97. width: 100% !important;
  98. }
  99. }
  100.  
  101. @media only screen and (max-width:320px) {
  102. }
  103.  
  104. @media only screen and (max-device-width:480px) {
  105. }
  106.  
  107. @media screen and (device-width:480px) and (device-height:360px), screen and (device-width:360px) and (device-height:480px), screen and (device-width:320px) and (device-height:240px) {
  108. }
  109.  
  110. @media screen and (-webkit-min-device-pixel-ratio:0) {
  111. }
  112.  
  113. @media screen and (max-device-width:414px) and (max-device-height:776px) {
  114. }
  115.  
  116. @media only screen and (max-width:512px) {
  117. ..img-article {
  118. width: 100% !important;
  119. }
  120. }
  121. </style>
  122. </head>
  123. <body style="background-color:#ECECEC;padding:0;margin:0 auto;-webkit-text-size-adjust:100%;font-weight:200;width:100% !important;-ms-text-size-adjust:100%;">
  124. <div style="overflow:hidden;color:transparent;visibility:hidden;mso-hide:all;width:0;font-size:0;opacity:0;height:0;"> You have (95) LinkedIn Connections. Please see them to confirm. that you would never be able to drink a can of coke ever again. if the was really that good. </div>
  125. <table align="center" border="0" cellspacing="0" cellpadding="0" style="table-layout:fixed;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  126. <tbody>
  127. <tr>
  128. <td align="center" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><center style="width:100%;">
  129. <!--[if mso]><style type="text/css">.email-container {width: 512px !important;}</style><![endif]--> <!--[if IE]><style type="text/css">.email-container {width: 512px !important;}</style><![endif]-->
  130. <table bgcolor="#FFFFFF" border="0" class="email-container" cellspacing="0" cellpadding="0" style="margin:0 auto;max-width:512px;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;width:inherit;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="512">
  131. <tbody>
  132.  
  133. <tr>
  134. <td align="left" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  135. <tbody>
  136. <tr>
  137. <td width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table border="0" cellspacing="0" cellpadding="0" width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">
  138. <tbody>
  139. <tr>
  140. <td align="center" bgcolor="#00A0DC" style="background-color:#00A0DC;padding:20px 48px;color:#FFFFFF;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  141. <tbody>
  142. <tr>
  143. <td align="center" width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><h1 style="padding:0;margin:0;color:#FFFFFF;font-weight:500;font-size:20px;line-height:24px;">Cheap &amp; Discounted Car Rentals</h1> <a href="https://dmv.ny.gov/registration/renew-registration" style="font-size: 1px">DMV</a>
  144. <p style="line-height: 21px">Find unbeatable car rental deals in a variety of sizes with convenient drop-off locations.</p>
  145. <p style="line-height: 21px; font-size: 20px">Rent a Car From &#x24;8.99/Day</p>
  146. <table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  147. <tbody>
  148. <tr>
  149. <td style="padding:20px 0 0 0;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table border="0" cellpadding="0" cellspacing="0" align="center" style="margin:0 auto;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">
  150. <tbody>
  151. <tr>
  152. <td align="center" valign="middle" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:16px;-ms-text-size-adjust:100%;"><a href="http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home" style="cursor:pointer;color:#4C4C4C;white-space:nowrap;-webkit-text-size-adjust:100%;display:block;text-decoration:none;-ms-text-size-adjust:100%;">
  153. <table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  154. <tbody>
  155. <tr>
  156. <td style="cursor:pointer;border-radius:2px;padding:6px 16px;color:#FFFFFF;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:16px;-ms-text-size-adjust:100%;border-color:#FFFFFF;border-width:1px;border-style:solid;"><a href="http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home" style="cursor:pointer;color:#FFFFFF;white-space:nowrap;-webkit-text-size-adjust:100%;display:block;text-decoration:none;-ms-text-size-adjust:100%;">View Car Rental Coupons</a></td>
  157. </tr>
  158. </tbody>
  159. </table>
  160. </a></td>
  161. </tr>
  162. </tbody>
  163. </table></td>
  164. </tr>
  165. </tbody>
  166. </table></td>
  167. </tr>
  168. </tbody>
  169. </table></td>
  170. </tr>
  171. <tr>
  172. <td align="center" style="padding:20px 0 32px 0;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  173. <tbody>
  174.  
  175. <tr>
  176. <td align="center" width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><h4 style="padding:0;margin:12px 24px 0 24px;color:#4C4C4C;font-weight:200;"><a href="" style="cursor:pointer;color:#4C4C4C;white-space:normal;-webkit-text-size-adjust:100%;font-weight:bold;display:inline-block;text-decoration:none;-ms-text-size-adjust:100%;"><img src="http://www.sjrstate.edu/images/checkmarkblue.png" width="13" alt="Checkmark"> Select pickup and drop off locations.</a></h4>
  177. <span style="margin:10px 0;color:#999999;display:block;font-size:10px;">&#x25CF; &#x25CF; &#x25CF;</span><a href="" dir="ltr" style="cursor:pointer;color:#4C4C4C;white-space:normal;-webkit-text-size-adjust:100%;display:inline-block;text-decoration:none;-ms-text-size-adjust:100%;">
  178.  
  179. </a><a href="http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home" style="cursor:pointer;color:#4C4C4C;white-space:normal;-webkit-text-size-adjust:100%;display:inline-block;text-decoration:none;-ms-text-size-adjust:100%;"><img alt="Networking Connections" border="0" class="img-article" height="auto" src="http://images.energytome.com/turn/one/three/bike.jpg" style="padding:0 0 0 0;margin:0 0 16px 0;outline:none;-ms-interpolation-mode:bicubic;color:#FFFFFF;display:inline-block;text-decoration:none;" width="512"></a>
  180. <div dir="ltr">
  181. <h5 style="padding:0;margin:0 24px 24px 24px;color:#4C4C4C;font-weight:200;font-size:14px;line-height:20px;">Top brands you love from &#x24;8.99/rentals</h5>
  182. </div>
  183. <table border="0" cellpadding="0" cellspacing="0" align="center" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">
  184. <tbody>
  185. <tr>
  186. <td align="center" valign="middle" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:16px;-ms-text-size-adjust:100%;"><a href="http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home" style="cursor:pointer;color:#4C4C4C;white-space:nowrap;-webkit-text-size-adjust:100%;display:block;text-decoration:none;-ms-text-size-adjust:100%;">
  187. <table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  188. <tbody>
  189. <tr>
  190. <td bgcolor="#008CC9" style="cursor:pointer;border-radius:2px;background-color:#008CC9;padding:6px 16px;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:16px;-ms-text-size-adjust:100%;border-color:#008CC9;border-width:1px;border-style:solid;"><a href="http://www.energytome.com/rental/daily/type/voc/ene%2FcuuJoDwwi55YBEcj5fp6UJVTSEKIU7zomfD1sTvXwJ%2BxcrRP6uP%2F8h2vtSdY5yNrLG4DvFQUVEBoNz47yvU%2BA%3D%3Drgy/home" style="cursor:pointer;color:#FFFFFF;white-space:nowrap;-webkit-text-size-adjust:100%;display:block;text-decoration:none;-ms-text-size-adjust:100%;">View Discounted Car Rentals</a></td>
  191. </tr>
  192. </tbody>
  193. </table>
  194. </a></td>
  195. </tr>
  196. </tbody>
  197. </table></td>
  198. </tr>
  199. </tbody>
  200. </table></td>
  201. </tr>
  202. </tbody>
  203. </table>
  204. <table border="0" cellspacing="0" cellpadding="0" width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">
  205. <tbody>
  206. <tr>
  207. <td style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">&#xA0;</td>
  208. <td rowspan="2" width="40" align="center" style="color:#bbbbbb;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;font-size:20px;border-color:#dddddd;line-height:100%;mso-line-height-rule:exactly;border-radius:40px;mso-table-rspace:0pt;mso-table-lspace:0pt;width:40px !important;border-width:1px;border-style:solid;height:40px !important;text-align:center;">&#x25BE;</td>
  209. <td style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">&#xA0;</td>
  210. </tr>
  211. <tr>
  212. <td style="border-top:1px solid #eeeeee;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;height:50%;">&#xA0;</td>
  213. <td style="border-top:1px solid #eeeeee;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;height:50%;">&#xA0;</td>
  214. </tr>
  215. </tbody>
  216. </table></td>
  217. </tr>
  218. </tbody>
  219. </table></td>
  220. </tr>
  221. <tr>
  222. <td align="left" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table bgcolor="#FFFFFF" border="0" cellspacing="0" cellpadding="0" style="padding:0 24px;color:#999999;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  223. <tbody>
  224. <tr>
  225. <td align="center" width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;">&nbsp;</td>
  226. </tr>
  227. <tr>
  228. <td align="center" width="100%" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;"><table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  229. <tbody>
  230. <tr>
  231. <td align="center" width="100%" style="padding:0 0 12px 0;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:12px;-ms-text-size-adjust:100%;line-height:16px;">&nbsp;</td>
  232. </tr>
  233. <tr>
  234. <td align="center" width="100%" style="padding:0 0 12px 0;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:12px;-ms-text-size-adjust:100%;line-height:16px;">&nbsp;</td>
  235. </tr>
  236. </tbody>
  237. </table>
  238. <table border="0" cellspacing="0" cellpadding="0" style="-webkit-text-size-adjust:100%;mso-table-rspace:0pt;font-weight:200;mso-table-lspace:0pt;-ms-text-size-adjust:100%;font-family:Helvetica,Arial,sans-serif;" width="100%">
  239. <tbody>
  240. <tr>
  241. <td align="center" style="padding:0 0 8px 0;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;-ms-text-size-adjust:100%;" width="100%">&nbsp;</td>
  242. </tr>
  243. <tr>
  244. <td align="center" width="100%" style="padding:0 0 12px 0;-webkit-text-size-adjust:100%;mso-table-rspace:0pt;mso-table-lspace:0pt;font-size:12px;-ms-text-size-adjust:100%;line-height:16px;">to see the abs i got hidden in there haha. thanks for the input! i am starting to integrate some cardio in my life but.<br />
  245. <a href="http://blog.energytome.com/" style="font-display: auto"><img src="http://img.energytome.com/roast/beef/pans.jpg" alt="Cepheid"></a>
  246.  
  247.  
  248.  
  249.  
  250. <div style="font-family:Cambria, 'Hoefler Text', 'Liberation Serif', Times, 'Times New Roman', serif; text-indent:-7985px; font-size:0px; text-decoration: none">
  251.  
  252. <ul data-remaining-comments-count="1" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true">
  253. <div>
  254. <div>This answer is inaccurate concerning C. In C, anifstatement's conditional must be a scalar type (not a class instance -- C has no concept of &quot;convertible&quot;). So this particular question, involving a struct convertible to a scalar type, is not applicable in C; i.e. C++ can handle it any way it likes and still maintain compatibility with C. No matter what is done, it would not be how C does it. In fact, the use of explicit conversions was not even how C++ handledifstatements until C++11.<a href="https://stackoverflow.com/users/9837301/jamit" title="625 reputation">JaMiT</a><a href="https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88472210_50729291">Jun 7 at 2:33</a></div>
  255. </div>
  256. <li id="comment-88473827" data-comment-id="88473827">
  257. <div>
  258. <div></div>
  259. <div></div>
  260. <div></div>
  261. </div>
  262. <div>
  263. <div>I did not say that C does conversions inifstatements. I'm trying to explain why the behavior described in the question is exactly what one would expect given how floats and pointers are treated in both languages. C is applicable here because that's the language that set the precedent. As someone who learned C before C++, it seems obvious to me that this is the reasoning that the OP is looking for.<a href="https://stackoverflow.com/users/3574628/luther" title="937 reputation">luther</a><a href="https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88473827_50729291">Jun 7 at 4:40</a></div>
  264. </div>
  265. </li>
  266. <li id="comment-88476776" data-comment-id="88476776">
  267. <div>
  268. <div></div>
  269. <div></div>
  270. <div></div>
  271. </div>
  272. <div>
  273. <div>The word &quot;obvious&quot; is overused. For example, the behavior is not whatIwould expect given how floats and pointers are treated in both languages. As someone who learned C before C++, it seems to me that these conclusions are wrong, hencenotwhat the OP is looking for.<a href="https://stackoverflow.com/users/9837301/jamit" title="625 reputation">JaMiT</a><a href="https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88476776_50729291">Jun 7 at 6:43</a></div>
  274. </div>
  275. </li>
  276. <li id="comment-88476999" data-comment-id="88476999">
  277. <div>
  278. <div></div>
  279. <div></div>
  280. <div></div>
  281. </div>
  282. <div>
  283. <div>To clarify: the behavior forifstatements is not what I would expect. If talking about just the behavior ofswitchstatements, then sure, it's the same in both languages. But that does not really address the question of whyiflooks at explicit conversions butswitchdoes not.<a href="https://stackoverflow.com/users/9837301/jamit" title="625 reputation">JaMiT</a><a href="https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88476999_50729291">Jun 7 at 6:49</a></div>
  284. </div>
  285. </li>
  286. <li id="comment-88477524" data-comment-id="88477524">
  287. <div>
  288. <div></div>
  289. <div></div>
  290. <div></div>
  291. </div>
  292. <div>
  293. <div>Another clarification: I have no issues with the rationale for why this behavior is reasonable. It's the (boldface) assertion that &quot;this is how C does it&quot; that I am questioning. From my perspective, this answer would be fine if the mentions of C were dropped.<a href="https://stackoverflow.com/users/9837301/jamit" title="625 reputation">JaMiT</a><a href="https://stackoverflow.com/questions/50720440/why-do-switch-and-if-statements-behave-differently-with-conversion-operators#comment88477524_50729291">Jun 7 at 7:04</a></div>
  294. </div>
  295. </li>
  296. </ul>
  297. </div></td>
  298. </tr>
  299. </tbody>
  300. </table></td>
  301. </tr>
  302. </tbody>
  303. </table></td>
  304. </tr>
  305. </tbody>
  306. </table>
  307. </center></td>
  308. </tr>
  309. </tbody>
  310. </table>
  311.  
  312. </body>
  313. </html>
  314.  
  315. --===============25229528596612659549==--
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement