Andre Poenitz schreef:
On Sat, Mar 07, 2009 at 02:48:22PM +0100, Vincent van Ravesteijn wrote:
Only Visual Studio C++ 2008 Express with SP1 supports TR1,
maybe this was the problem.

Yes, I knew that was the problem. However, at the time of the meeting SP1 was not available for the Express Edition.

Now it is...

Doex that mean we are free to replace boost::shared_ptr by
std::tr1::shared_ptr now?

Andre'
Well, the attached works for me, so yes.

By the way, please note that I had to use

#include <memory>

while in http://www.lyx.org/trac/changeset/27520 you used

#include <tr1/memory>

which doesn't work here.

Vincent
Index: src/graphics/GraphicsCache.h
===================================================================
--- src/graphics/GraphicsCache.h        (revision 28704)
+++ src/graphics/GraphicsCache.h        (working copy)
@@ -20,7 +20,7 @@
 #ifndef GRAPHICSCACHE_H
 #define GRAPHICSCACHE_H
 
-#include <boost/shared_ptr.hpp>
+#include <memory>
 
 #include <vector>
 #include <string>
@@ -65,7 +65,7 @@
         *
         *  You have been warned!
         */
-       typedef boost::shared_ptr<CacheItem> ItemPtr;
+       typedef std::tr1::shared_ptr<CacheItem> ItemPtr;
        ///
        ItemPtr const item(support::FileName const & file) const;
 
Index: src/graphics/GraphicsLoader.cpp
===================================================================
--- src/graphics/GraphicsLoader.cpp     (revision 28704)
+++ src/graphics/GraphicsLoader.cpp     (working copy)
@@ -159,7 +159,7 @@
 //
 /////////////////////////////////////////////////////////////////////
 
-typedef boost::shared_ptr<Image> ImagePtr;
+typedef std::tr1::shared_ptr<Image> ImagePtr;
 
 class Loader::Impl : public boost::signals::trackable {
 public:

Reply via email to