Boost logo

Boost Users :

Subject: Re: [Boost-users] [multi_index] iterating over keys and "extracting" key extractors
From: Joaquin M Lopez Munoz (joaquin_at_[hidden])
Date: 2015-03-20 05:33:55


Nick Stokes <randomaccessiterator <at> gmail.com> writes:

>
> Sorry for being vague about versions.  This was with Boost 1.49.
> Both Visual Studio 2012 and 2013 generates the warning.  Clang 3.5.0
> and g++ 4.7.2 do not. They all compile fine at the end. 
>
> Also I just tried with Boost 1.56. There is no warning in either
> compiler! Strangely, the result_type typedef in key extractor is
> still non-& in this version. Perhaps Boost.Range changed...

Please don't top-post:

http://www.boost.org/community/policy.html#quoting

Thank you!

So, to sum up the top-posted chain of posts of yours,
boost::multi_index::member<Class,Type,PtrToMember> publicizes its
result type as

typedef Type result_type;

yet its call operator overloads return Type& or ¹ÍЁQÑåÁ”˜°…¹Ñ¡¥Ì)É•ÍÕ±Ñ́¥¸Í½µ”Ý…ɹ¥¹Ì¥¸YL€ÄÈ€¼ ½½ÍЀĸÐäÝ¡•¸ÕÍ•¥¸½µ‰¥¹…Ñ¥½¸)ݥѠ‰½½ÍÐèé…‘…ÁѽÉÌèéÑÉ…¹Í™½É´¸()M¼°Ý¡…ѕٕȁѡ”Áɽ‰±•´¥Ì°¥Ð‘½•Ì¹½Ð‰•±½¹œ¥¸ ½½Íй5ձѥ%¹‘•à°)Í¥¹”µ•µ‰•Èµ•É•±ä‘•™¥¹•ÌÉ•ÍÕ±Ñ}ÑåÁ”¥¸…½É‘…¹”Ý¥Ñ Ñ¡”)É•Åեɕµ•¹Ñ́½˜Ñ¡”-•äáÑÉ…Ñ½Èµ½‘•°è()¡ÑÑÀè¼½ÝÝܹ‰½½Íй½Éœ½±¥‰Ì½µÕ±Ñ¥}¥¹‘•à½‘½Œ½É•™•É•¹”¼)­•å}•áÑÉ…Ñ¥½¸¹¡Ñµ°­•å}•áÑÉ…Ñ½ÉÌ()$µ•…¸°‘•™¥¹¥¹œÉ•ÍÕ±Ñ}ÑåÁ”¥¸Ý¡…ѕٕȁ݅䀡½È¹½Ð‘•™¥¹¥¹œ¥Ð)…Ё…±°¤¥Ì¹½Ð…¸•ÉɽȁÁ•ÈÍ”쁥Ё¥Ì ½½ÍйI…¹”…ÍÍÕµÁÑ¥½¹Ì½¸)Ñ¡¥ÌÑåÁ•‘•˜Ñ¡…Ёµ¥¡Ð‰”Áɽ‰±•µ…Ñ¥Œ¸U¹™½ÉÑÕ¹…Ñ•±ä°Ñ¡”‘½Õµ•¹Ñ…Ñ¥½¸)™½È‰½½ÍÐèé…‘…ÁѽÉÌèéÑÉ…¹™½É´¡É¹œ±™Õ¸¤()¡ÑÑÀè¼½ÝÝܹ‰½½Íй½Éœ½±¥‰Ì½É…¹”½‘½Œ½¡Ñµ°½É…¹”½É•™•É•¹”¼)…‘…ÁѽÉ̽ɕ™•É•¹”½ÑÉ…¹Í™½Éµ•¹¡Ñµ°()‘¼¹½Ðµ•¹Ñ¥½¸Ý¡…Ёѡ”É•Åեɕµ•¹Ñ́gVâ&RÂv†WF†W"—B—0¦ÖæFF÷'’F†B&W7VÇE÷G—R&R&W6VçBæB†÷rF†—2—2†æFÆVB'¤&ö÷7Bå&ævRâ’7VvvW7B–÷R–æ—F–FRæWrF—67W76–öâv—F‚·&ævUЦ–âF†R7V&¦V7BÆ–æR6†÷v–ærF†R&ö&ÆVÒ–÷Rf÷VæBâ’7W7V7BF†—0¦—2&VÆFVBFò&ö÷7C§&W7VÇEöö` ¦‡GG¢ò÷wwræ&ö÷7Bæ÷&röÆ–'2÷WF–Æ—G’÷WF–Æ—G’æ‡FÒ7&W7VÇEöö` §v†–6‚&ö÷7Bå&ævR6VV×2FòW6R–çFW&æÆÇ’Â'WBöæÇ’F†RWF†÷"6à§FVÆÂâÇ6ò–bF†R&ö&ÆVÒFöW2æ÷B6†÷r–â&ö÷7BãSb–÷RÖ–v‡B&P¦Væ6÷W&vVBFò6–×Ç’Ww&FRæBÖ÷fRöâà ¤¦ö\:ÖâÒÌ;7W¢×\;÷ ¥FVÆVl;6æ–6


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net