IRC logs of Libera.Chat #BZFlag for Monday, 2023-09-25

*** cods <cods!~fred@82-65-232-44.subs.proxad.net> has quit IRC (Ping timeout: 246 seconds)00:37
*** cods <cods!~fred@82-65-232-44.subs.proxad.net> has joined #bzflag00:38
*** FastLizard4 is back02:57
*** FastLizard4 is now away: AWAY from keyboard04:03
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has quit IRC (Ping timeout: 260 seconds)05:33
*** FastLizard4 is back07:23
*** FastLizard4 is now away: AWAY from keyboard08:05
*** FastLizard4 is now away: GONE - Screen Detached and Disconnected from IRC (I'm probably asleep, at work, or doing something in real life)08:31
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has quit IRC (Read error: Connection reset by peer)09:31
*** _I_Died_Once <_I_Died_Once!~I_Died_On@c-73-184-170-223.hsd1.ga.comcast.net> has joined #bzflag10:55
*** FastLizard4 <FastLizard4!fastlizard@wikipedia/FastLizard4> has quit IRC (*.net *.split)11:30
*** FastLizard4 <FastLizard4!fastlizard@wikipedia/FastLizard4> has joined #bzflag11:35
*** FastLizard4 is now away: GONE - Screen Detached and Disconnected from IRC (I'm probably asleep, at work, or doing something in real life)11:35
*** Cobra_Fast is now away: offline11:54
*** Cobra_Fast is back11:54
*** Cobra_Fast is now away: offline12:04
*** Cobra_Fast is back12:04
tuponelooking at code in src/bzfs/CustomMesh.cxx I think this is not sane --- const_cast<std::vector<cfvec3>*>(&vertices)->push_back(vert);14:01
blast007sane as in it's doing something wrong, or it just seems crazy?14:09
blast007before 2.4.4, it was ((std::vector<cfvec3>*)&vertices)->push_back(vert);14:11
tuponethe function is declared const14:11
tuponeso we are promising we do not change the objetc14:11
blast007ah14:13
tuponemaybe Flash can tell it better14:13
blast007should that be throwing a warning/error when we build that?14:13
tuponeyes, if I remove the const_cast14:14
blast007is it a "casts away qualifiers" warning?14:14
tuponeIf I remove the cast it error out because we modify the object14:15
blast007ok14:15
tuponeand the compiler can make wrong optimization because of that14:16
tuponemaybe not in our case, who know14:16
tuponeI suggest to remove the const qualifier from all those virtual functions14:19
*** Cobra_Fast is now away: offline16:18
*** Cobra_Fast is back16:18
BZNotifybzflag: atupone opened pull request #333 "Remove const attribute to writeToGroupDef" (https://github.com/BZFlag-Dev/bzflag/pull/333)18:03
*** FastLizard4 is back18:14
*** FastLizard4 is now away: AWAY from keyboard18:21
*** Sgeo <Sgeo!~Sgeo@user/sgeo> has joined #bzflag19:01
*** FastLizard4 is back21:22
*** FastLizard4 is now away: AWAY from keyboard21:22
*** Zehra <Zehra!~Yukari@user/yukari> has joined #bzflag22:31

Generated by irclog2html.py 2.17.3 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!