Boost C++ Libraries: Ticket #8964: operator>> missing https://svn.boost.org/trac10/ticket/8964 <p> boost/units/io.hpp defines operator&lt;&lt; but not operator&gt;&gt;. </p> <p> As a result, dimensionful quantities can be written but not read. This is a serious problem. </p> <p> Why would I want to use Boost::Units in the first place? Because I'd like to enter dimensionful quantities into my program, then do some calculations, and have it output dimensionful quantities. </p> <p> The latter (i.e. output) works. But the former (i.e. input) is restricted to hardcoded parameters in my source file. If I move the data to a config file and try to read it, I face the problem that there is no operator&gt;&gt;. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/8964 Trac 1.4.3 Steven Watanabe Tue, 01 Apr 2014 02:39:05 GMT <link>https://svn.boost.org/trac10/ticket/8964#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8964#comment:1</guid> <description> <p> Parsing units is well beyond the scope of the library. Anything that I could implement would be pretty brittle. </p> </description> <category>Ticket</category> </item> <item> <author>pipping@…</author> <pubDate>Sun, 13 Apr 2014 19:48:21 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/8964#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/8964#comment:2</guid> <description> <p> I think Boost::Units could make working with dimensionful quantities in scientific computations a lot pleasanter than it currently is. The asymmetry that this ticket address limits its field of application significantly, however: </p> <p> Ideally, I would enter dimensionful quantities into my program and have it return dimensionful quantities. Writing, thus the later, is already possible. But the former (reading) is only possible in the sense that I can hardcode quantities into my program. </p> <p> If, e.g., I wanted to have my program read dimensionful quantities from a config file instead (as is advisable in 99% of all cases, I would assume), I'd find myself unable to do so. I mean no offense, but if I had known this when I had first looked at Boost::Units, I probably would not have taken a second look, because this limitation is so grave. </p> </description> <category>Ticket</category> </item> </channel> </rss>