<html>
<head>
<!-- Template generated by Exclaimer Mail Disclaimers on 11:45:06 vendredi, 8 janvier 2021 -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">P.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
LI.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
DIV.ImprintUniqueID {
        MARGIN: 0cm 0cm 0pt
}
TABLE.ImprintUniqueIDTable {
        MARGIN: 0cm 0cm 0pt
}
DIV.Section1 {
        page: Section1
}
</style><style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<p class="ImprintUniqueID"></p>
<div id="divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:rgb(0,0,0); font-family:Calibri,Helvetica,sans-serif,Helvetica,EmojiFont,"Apple Color Emoji","Segoe UI Emoji",NotoColorEmoji,"Segoe UI Symbol","Android Emoji",EmojiSymbols">
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Hello,</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">When using std::function instead of function pointer (see the sample of code) on Mac, we get a huge difference between size of generated binary (80ko when using function pointer and 157ko whit
 std::function).</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">I use Xcode to build debug with -O0 -std=gnu++14 and libc++.</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">It doesn't seem to have the same result on windows or linux.</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Is it something normal ?</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Here's the code sample :</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(252, 106, 93); background-color: rgb(31, 31, 36);">
<span style="color: #fd8f3f">#include </span><iostream></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(252, 106, 93); background-color: rgb(31, 31, 36);">
<span style="color: #fd8f3f">#include </span><functional></p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36); min-height: 14px;">
<br>
</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36);">
<span style="color: #fc5fa3"><b>int</b></span> <span style="color: #41a1c0">main</span>(<span style="color: #fc5fa3"><b>int</b></span> argc,
<span style="color: #fc5fa3"><b>const</b></span> <span style="color: #fc5fa3"><b>char</b></span> * argv[]) {</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36);">
    <span style="color: #d0a8ff">std</span>::<span style="color: #d0a8ff">function</span><<span style="color: #fc5fa3"><b>void</b></span>()> f = [](){<span style="color: #d0a8ff">std</span>::<span style="color: #a167e6">cout</span> <<
<span style="color: #fc6a5d">"LOG2\n"</span>;};</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgb(108, 121, 134); background-color: rgb(31, 31, 36);">
//    void (*f)() = [](){std::cout << "LOG3\n";};</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36); min-height: 14px;">
    </p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36);">
    f();</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36); min-height: 14px;">
    </p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36);">
    <span style="color: #fc5fa3"><b>return</b></span> <span style="color: #d0bf69">
0</span>;</p>
<p style="margin-right: 0px; margin-left: 0px; font-stretch: normal; font-size: 12px; line-height: normal; font-family: Menlo; color: rgba(255, 255, 255, 0.85); background-color: rgb(31, 31, 36);">
}</p>
<div><br>
</div>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont"><br>
</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Thanks,</p>
<p style="font-family:Calibri,Helvetica,sans-serif,serif,EmojiFont">Cyril</p>
</div>
<p></p>
<p class="ImprintUniqueID"></p>
<p></p>
<p class="ImprintUniqueID">
<table class="ImprintUniqueIDTable" style="WIDTH: 600px; BORDER-COLLAPSE: collapse" cellspacing="0" cols="2" cellpadding="0" border="0">
<tbody>
<tr style="FONT-SIZE: 7pt">
<td style="WIDTH: 50px; VERTICAL-ALIGN: top; PADDING-TOP: 7px"><img style="border: 0px Solid ; " src="cid:image0b65ab.JPG@a378ba69.48ac0a90"></td>
<td style="FONT-SIZE: 7pt; FONT-FAMILY: Verdana; WIDTH: 219px; COLOR: #274370; PADDING-TOP: 10px; PADDING-LEFT: 10px; LEFT: 10px" valign="top" width="270">
<font style="FONT-SIZE: 7pt" color="#cecece" face="Verdana"></font><font style="FONT-SIZE: 7pt" color="#a1a1a1" face="Verdana">
<table style="font-size: 7pt; font-family: Verdana; color: #A0A0A0" cellpadding="0" cellspacing="0" width="250px" class="311c3dbe-7d53-40aa-ad3d-cf4240d93389Table">
<tbody>
<tr>
<td><font style="font-family:Verdana;color:#274370;font-weight:bold;">Cyril Makloufi</font></td>
</tr>
<tr>
<td><font style="color:#666666;">Développeur</font></td>
</tr>
</tbody>
</table>
</font><font style="FONT-SIZE: 7pt" color="#a1a1a1" face="Verdana"></font>
<table style="font-size: 7pt; font-family: Verdana; color: #A0A0A0" cellpadding="0" cellspacing="0" width="240px" class="311c3dbe-7d53-40aa-ad3d-cf4240d93389Table">
<tbody>
<tr>
<td width="55px"><font style="color:#666666;">Email :</font></td>
<td><font style="color:#666666;"><a href="mailto:Cyril.Makloufi@4d.com" title="Click to send email to Cyril Makloufi" target="" style="">Cyril.Makloufi@4d.com</a></font></td>
</tr>
<tr>
<td width="55px"><font style="color:#666666;">Web :</font></td>
<td><font style="color:#666666;"><a href="http://www.4d.com" title="" target="" style="">www.4d.com</a></font></td>
</tr>
</tbody>
</table>
</td>
<td style="WIDTH: 1px"></td>
<td style="WIDTH: 293px; PADDING-BOTTOM: 10px; PADDING-TOP: 10px; LEFT: auto" valign="top">
<table style="font-family:Verdana; color: #666666; font-size: 7pt; border-left-style: solid; border-left-width: 1px; border-left-color: #274370; padding-left: 10px;" cellpadding="0" cellspacing="0" width="220px" class="311c3dbe-7d53-40aa-ad3d-cf4240d93389Table">
<tbody>
<tr style="">
<td width="150px"><font style="font-family:Verdana;color:#274370;font-weight:bold;"><font style="font-family:Verdana;color:#CECECE;"><font style="font-family:Verdana;color:#CECECE;">4D SAS</font></font></font></td>
</tr>
<tr style="">
<td><font style="font-family:Verdana;color:#666666;font-weight:normal;"><font style="font-family:Verdana;color:#CECECE;">66 route de Sartrouville<br>
Parc Les Erables - Batiment 4</font></font></td>
</tr>
<tr style="">
<td><font style="font-family:Verdana;color:#666666;"><font style="font-family:Verdana;color:#CECECE;">78230<font style="font-family:Verdana;color:#CECECE;">
</font>Le Pecq<font style="font-family:Verdana;color:#CECECE;"> - </font>France</font></font></td>
</tr>
</tbody>
</table>
<table style="font-family:Verdana; color: #666666; font-size: 7pt; border-left-style: solid; border-left-width: 1px; border-left-color: #274370; padding-left: 10px;" cellpadding="0" cellspacing="0" width="250px" class="311c3dbe-7d53-40aa-ad3d-cf4240d93389Table">
<tbody>
<tr style="">
<td style="" width="53px"><font style="font-family:Verdana;color:#666666;font-weight:normal;"><font style="font-family:Verdana;color:#CECECE;"><font style="font-family:Verdana;color:#CECECE;">Standard :</font></font></font></td>
<td><font style="font-family:verdana;color:#0A2C2A;"><font style="font-family:Verdana;color:#CECECE;">+33 1 30 53 92 00</font></font></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</p>
<font color="#ff6600"><!-- This is the environment stuff -->
<p class="ImprintUniqueID" style="FONT-SIZE: 7pt">
<table class="ImprintUniqueIDTable" style="HEIGHT: 86px; WIDTH: 300px; BORDER-COLLAPSE: collapse; PADDING-LEFT: 25px" cellspacing="0" cols="1" cellpadding="0" border="0">
<tbody>
</tbody>
</table>
</p>
<!-- This is the start of the disclaimer  -->
<p class="ImprintUniqueID" style="FONT-SIZE: 7pt"><br>
</p>
<p class="ImprintUniqueID"><font face="Verdana"></font></p>
<p></p>
<p></p>
<p></p>
</font>
<p></p>
<p class="ImprintUniqueID" align="left"></p>
<p class="ImprintUniqueID"></p>
<p align="left">  </p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
<p></p>
</body>
</html>