<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <atom:link href="https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4788" rel="self" type="application/rss+xml" />
  <title>SmaugMuds - Topic: Compile error with std::bitset and strings</title>
  <link>https://smaugmuds.afkmods.com/index.php?a=rssfeed&amp;t=4788</link>
  <description>The largest Smaug community resource site. - </description>
  <language>en</language>
  <generator>SmaugMuds</generator>
  <ttl>60</ttl>
  <item>
   <title>Compile error with std::bitset and strings</title>
   <link>https://smaugmuds.afkmods.com/topic/compile-error-with-stdbitset-and-strings-4788/&amp;p=23501#p23501</link>
   <description>Constructing one from a string is exactly what I was after, and that worked. So thanks. No more compile failure :) I just hope it actually assigns them in the same order the characters in the string are written, cause there&#039;s conflicting information out there saying I may or may not need to reverse the string before sending it to the bitset constructor.</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/compile-error-with-stdbitset-and-strings-4788/&amp;p=23501#p23501</guid>
   <pubDate>Sun, 2 Nov 2014 01:43:09 CDT</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (Samson)</author>
  </item>
  <item>
   <title>Compile error with std::bitset and strings</title>
   <link>https://smaugmuds.afkmods.com/topic/compile-error-with-stdbitset-and-strings-4788/&amp;p=23500#p23500</link>
   <description>[quote] [code]pvd-&amp;gt;varflags( varbits );[/code] [/quote] You&#039;re attempting to call operator() here, which bitset doesn&#039;t have. You can&#039;t actually assign strings to a bitset. You can, however, construct one from a string. So you can do the following: [code]pvd-&amp;gt;varflags = std::bitset&amp;lt;128ul&amp;gt;( varbits );[/code]</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/compile-error-with-stdbitset-and-strings-4788/&amp;p=23500#p23500</guid>
   <pubDate>Sat, 1 Nov 2014 23:41:23 CDT</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (Caius)</author>
  </item>
  <item>
   <title>Compile error with std::bitset and strings</title>
   <link>https://smaugmuds.afkmods.com/topic/compile-error-with-stdbitset-and-strings-4788/&amp;p=23498#p23498</link>
   <description>Figured since I was of a mind to be fixing stuff up I&#039;d get the Smaug 1.8 variables code to actually work right in AFKMud. I&#039;ve run into one last small problem though. [code]arthmoor@boralis:~/afkmud/src$ make Building AFKMud.... make -j2 -s afkmud Compiling o/variables.o.... variables.cpp: In function &amp;acirc;&amp;euro;&amp;tilde;void fread_variable(char_data*, FILE*)&amp;acirc;&amp;euro;&amp;trade;: variables.cpp:587:39: error: no match for call to &amp;acirc;&amp;euro;&amp;tilde;(std::bitset&amp;lt;128ul&amp;gt;) (std::string&amp;amp;)&amp;acirc;&amp;euro;&amp;trade; pvd-&amp;gt;varflags</description>
   <guid isPermaLink="true">https://smaugmuds.afkmods.com/topic/compile-error-with-stdbitset-and-strings-4788/&amp;p=23498#p23498</guid>
   <pubDate>Sat, 1 Nov 2014 15:01:44 CDT</pubDate>
   <category>AFKMud Support &amp; Development</category>
   <author>nobody@example.com (Samson)</author>
  </item>
 </channel>
</rss>
