I used a slightly different method to solve the filesystem version problem in 
Windows port.
The method proposed in the Jira gives errors in Visual Studio.
        fs::path dirPath (dirname);
        etc...
         if (!fs::is_directory(*itr) && isShlibName(itr->path().native()))
                        tryShlib (itr->path().native().data(), true);

1>  Modules.cpp
1>qpid\Modules.cpp(98): error C2664: '`anonymous-namespace'::isShlibName' : 
cannot convert parameter 1 from 'const boost::filesystem::path::string_type' to 
'const std::string &'
1>          Reason: cannot convert from 'const 
boost::filesystem::path::string_type' to 'const std::string'
1>          No user-defined-conversion operator available that can perform this 
conversion, or the operator cannot be called
1>qpid\Modules.cpp(99): error C2664: 'qpid::tryShlib' : cannot convert 
parameter 1 from 'const wchar_t *' to 'const char *'
1>          Types pointed to are unrelated; conversion requires 
reinterpret_cast, C-style cast or function-style cast


For version 3 of the file system I used:

void loadModuleDir (std::string dirname, bool isDefault)
{
        fs::path dirPath (dirname, fs::native);
        etc...

        if (!fs::is_directory(*itr) && 
isShlibName(itr->path().filename().string()))
                        tryShlib (itr->path().filename().string().data(), true);

I didn't get any errors in Visual Studio when I compiled. Haven't tried it on 
Linux.
Mary

-----Original Message-----
From: Andrew Stitcher (JIRA) [mailto:j...@apache.org] 
Sent: Wednesday, December 19, 2012 1:05 AM
To: dev@qpid.apache.org
Subject: [jira] [Updated] (QPID-4095) Boost 1.50.0 has removed filesystem 
version 2 from the library


     [ 
https://issues.apache.org/jira/browse/QPID-4095?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andrew Stitcher updated QPID-4095:
----------------------------------

    Assignee: Andrew Stitcher  (was: Alan Conway)
    
> Boost 1.50.0 has removed filesystem version 2 from the library
> --------------------------------------------------------------
>
>                 Key: QPID-4095
>                 URL: https://issues.apache.org/jira/browse/QPID-4095
>             Project: Qpid
>          Issue Type: Improvement
>          Components: C++ Broker, C++ Client, C++ Clustering
>    Affects Versions: 0.16
>            Reporter: Davin Shearer
>            Assignee: Andrew Stitcher
>              Labels: build
>         Attachments: qpid_boost_fs.patch, qpid-cpp-0.16.patch
>
>
> The build fails when building against boost 1.50.0 because version 0.16 and 
> earlier require boost filesystem version 2 which has been removed from boost 
> version 1.50.0.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators 
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional 
commands, e-mail: dev-h...@qpid.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org
For additional commands, e-mail: dev-h...@qpid.apache.org

Reply via email to