Boost C++ Libraries: Ticket #38: "Property" identifier name collision https://svn.boost.org/trac10/ticket/38 <pre class="wiki">Hi, I am experimenting with the boost graph library. I like it so far but had a problem with a name collision. The identifier, "Property" in boost\pending\property.hpp and boost\pending\detail\property.hpp was colliding with a class/struct in my code, called "Property." Two things I can do to fix it: 1. Rename my class or 2. Rename "Property" in those boost header files to something else, e.g. "BoostProperty." Anyway, I think that y'all should consider renaming the identifier in the official boost header file(s). There's gotta be other folks out there, like me, declaring classes with the same name. Thanks for your consideration. -Jon </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/38 Trac 1.4.3 jsiek Thu, 24 Jan 2002 19:18:35 GMT <link>https://svn.boost.org/trac10/ticket/38#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/38#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=32836 I'd like to understand why the name collision is occuring. The BGL is inside a namespace, so normally that would protect against name collisions, so something weird must be occuring. Could you post a small example program demonstrating the name collision. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>jsiek</dc:creator> <pubDate>Thu, 24 Jan 2002 19:27:37 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/38#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/38#comment:2</guid> <description> <pre class="wiki">Logged In: YES user_id=32836 Also, please state which compiler you are using. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>jsiek</dc:creator> <pubDate>Fri, 25 Jan 2002 02:00:51 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/38#comment:3 https://svn.boost.org/trac10/ticket/38#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=32836 Hmm, Parameter is only used in template parameter names. I don't think parameter names are ever suppose to conflict with class names. So it is probably a bug in the compiler Oh well, I've checked in a change to the names anyways as a workaround. </pre> Ticket