<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Verdana;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:inherit;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="FR" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Hi @all,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span lang="EN-US">I would be pleased if you tell me how to compile a get_if<> with a sdbusplus enum variant ?<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">I was not able to figure out how to compile that :<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-family:Consolas;color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%">const auto* flexible_module_type = std::get_if<sdbusplus::xyz::openbmc_project::Inventory::Item::server::FlexibleModule::ModuleTypes>(&flexible_prop_map_iterator->second);<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US">** I tried to replace auto with </span><span lang="EN-US" style="font-family:Consolas;color:#2E75B6;mso-style-textfill-fill-color:#2E75B6;mso-style-textfill-fill-alpha:100.0%">sdbusplus::xyz::openbmc_project::Inventory::Item::server::FlexibleModule::ModuleTypes></span><span lang="EN-US"><o:p></o:p></span></p>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="168%" style="width:168.62%;border-collapse:collapse">
<tbody>
<tr>
<td width="1637" colspan="2" valign="bottom" style="width:1228.0pt;padding:0cm 0cm 0cm 0cm">
<p class="MsoNormal"><span lang="EN-US">No success.</span><b><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:red;mso-fareast-language:FR">Error is :<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:red;mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:red;mso-fareast-language:FR">bmcweb/1.0+git1.0-r0/recipe-sysroot/usr/include/c++/10.2.0/variant:1150:42: error: static assertion failed: T must occur exactly
once in alternatives<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:red;mso-fareast-language:FR">static_assert(__detail::__variant::__exactly_once<_Tp, _Types...>,<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><span lang="EN-US">I would be grateful for any help, even if you just tell me that this question should be asked elsewhere,<o:p></o:p></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR">Thanks,<o:p></o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR"><o:p> </o:p></span></b></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#1F497D;mso-fareast-language:FR">Kind Regards,</span></b><b><span lang="EN-US" style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#005493;mso-fareast-language:FR"><o:p></o:p></span></b></p>
</td>
</tr>
<tr>
<td width="21" style="width:16.0pt;padding:0cm 15.0pt 0cm 0cm">
<p class="MsoNormal"><span style="border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR"><img width="70" height="24" style="width:.7333in;height:.25in" id="Image_x0020_11" src="cid:image001.png@01D8E210.DCDC0330" alt="Atos logo"></span><span style="mso-fareast-language:FR"><o:p></o:p></span></p>
</td>
<td width="1616" valign="bottom" style="width:1212.0pt;border:none;border-left:solid gray 1.5pt;padding:0cm 0cm 0cm 18.75pt">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:10.0pt;font-family:"Verdana",sans-serif;color:#0066A1;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR">Francine SAUVAGE</span></b><span lang="EN-US" style="font-family:inherit;mso-fareast-language:FR"><br>
</span><span lang="EN-US" style="font-size:8.5pt;font-family:"Verdana",sans-serif;color:black;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR">Team Leader – R&D, BDS<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#005493;mso-fareast-language:FR">Atos France<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:8.0pt;font-family:"Verdana",sans-serif;mso-fareast-language:FR">Mobile: +33 6 21 43 11 21<o:p></o:p></span></p>
<p class="MsoNormal"><span style="mso-fareast-language:FR"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DP5g8tSWkCkU&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Ms2gu2PDvBD4Ogl0AhLpF1HllKl3s3kuv6Gw63nHDbc%3D&reserved=0"><b><span style="font-size:7.5pt;font-family:"Verdana",sans-serif;color:#0066A1">R&D,
BDS</span></b></a></span><span style="font-family:inherit;color:#4472C4;mso-fareast-language:FR"><br>
</span><span style="font-size:8.5pt;font-family:"Verdana",sans-serif;color:black;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR">Avenue Jean Jaurès – France</span><span style="font-family:inherit;mso-fareast-language:FR"><br>
</span><span style="mso-fareast-language:FR"><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fatos.net%2F&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=NEcchSNjDs2j1pcXCrru2MeIz5Uii38xg5HJEbPFQ2E%3D&reserved=0" target="_blank"><span style="font-size:8.5pt;font-family:"Verdana",sans-serif;color:#0066A1;border:none windowtext 1.0pt;padding:0cm">atos.net</span></a></span><span style="font-family:inherit;mso-fareast-language:FR"><br>
</span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.linkedin.com%2Fin%2Ffrancine-sauvage-consultant%2F&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=7EnlnxDQG8AUgBlflxPI3uj9rUlQ6RfFTYAb3LtdzzE%3D&reserved=0" target="_blank"><span style="font-size:15.0pt;font-family:inherit;color:white;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="Image_x0020_12" src="cid:image002.png@01D8E210.DCDC0330" alt="LinkedIn icon"></span></a><span style="font-size:15.0pt;font-family:inherit;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR"> </span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftwitter.com%2Ffsauvage&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=zUWVIquoEIy%2FDH1HSFRPEBNDDTF29tvWkONSvtqkfXc%3D&reserved=0" target="_blank"><span style="font-size:15.0pt;font-family:inherit;color:white;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="Image_x0020_13" src="cid:image003.png@01D8E210.DCDC0330" alt="Twitter icon"></span></a><span style="font-size:15.0pt;font-family:inherit;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR"> </span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.facebook.com%2FAtos%2F&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=L1LDaAUjf%2BpPOlU0K1rMHB5D%2FrvEomEgpM2Ghvpx4DY%3D&reserved=0" target="_blank"><span style="font-size:15.0pt;font-family:inherit;color:white;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="Image_x0020_14" src="cid:image004.png@01D8E210.DCDC0330" alt="Facebook icon"></span></a><span style="font-size:15.0pt;font-family:inherit;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR"> </span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.youtube.com%2Fuser%2FAtos&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=18CHBR%2B1ap1a8%2Fv35you%2FGKiB0XoG4%2F6UU2cL%2F17CE8%3D&reserved=0" target="_blank"><span style="font-size:15.0pt;font-family:inherit;color:white;border:none windowtext 1.0pt;padding:0cm;mso-fareast-language:FR;text-decoration:none"><img border="0" width="15" height="15" style="width:.1583in;height:.1583in" id="Image_x0020_15" src="cid:image005.png@01D8E210.DCDC0330" alt="Youtube icon"></span></a><span style="mso-fareast-language:FR">
</span><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Ffrsauvage&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=ur4%2Bou5o0JK2u6359ELCRwiSpG3ej%2BAW65DyqsC4NeE%3D&reserved=0"><span style="color:windowtext;mso-fareast-language:FR;text-decoration:none"><img border="0" width="17" height="17" style="width:.175in;height:.175in" id="Image_x0020_1" src="cid:image006.png@01D8E210.DCDC0330"></span></a><a href="https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fhub.docker.com%2Fu%2Ffrancine78&data=05%7C01%7Cfrancine.sauvage%40atos.net%7C201b7a3a66ff416c998708daa60de5f6%7C33440fc6b7c7412cbb730e70b0198d5a%7C0%7C0%7C638004875859707377%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=mRgv8%2FWZgU54cKGTQF9zARI9p%2BJOxESouwIGZpJCdS4%3D&reserved=0"><span style="color:windowtext;mso-fareast-language:FR;text-decoration:none"><img border="0" width="17" height="14" style="width:.175in;height:.15in" id="Image_x0020_7" src="cid:image007.png@01D8E210.DCDC0330"></span></a><span style="mso-fareast-language:FR"> <o:p></o:p></span></p>
<p class="MsoNormal"><i><span lang="EN-US" style="font-size:10.0pt;color:#90ABDC;mso-fareast-language:FR">TT: [Wednesday or Thurday(2<sup>nd</sup> week of month) ] - Friday]
<o:p></o:p></span></i></p>
<p class="MsoNormal"><i><span style="font-size:9.0pt;color:red;mso-fareast-language:FR">OoO : October 31<o:p></o:p></span></i></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:FR"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>