Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auto_ptr warnings #68

Closed
johnlaing opened this issue Sep 15, 2015 · 3 comments
Closed

auto_ptr warnings #68

johnlaing opened this issue Sep 15, 2015 · 3 comments

Comments

@johnlaing
Copy link
Contributor

@johnlaing johnlaing commented Sep 15, 2015

g++ -std=c++11 -I/usr/share/R/include    -I../inst/include/ -I.  -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/usr/local/lib/R/site-library/BH/include"   -fpic  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -g -c blpapi_utils.cpp -o blpapi_utils.o
In file included from /usr/local/lib/R/site-library/BH/include/boost/smart_ptr/shared_ptr.hpp:28:0,
                 from /usr/local/lib/R/site-library/BH/include/boost/shared_ptr.hpp:17,
                 from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/greg_month.hpp:14,
                 from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/greg_ymd.hpp:16,
                 from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/greg_calendar.hpp:16,
                 from /usr/local/lib/R/site-library/BH/include/boost/date_time/gregorian/gregorian_types.hpp:19,
                 from blpapi_utils.cpp:23:
/usr/local/lib/R/site-library/BH/include/boost/smart_ptr/detail/shared_count.hpp:395:33: warning: ‘template<class> class std::auto_ptr’ is deprecated [-Wdeprecated-declarations]
     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )

And so on...

@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Sep 15, 2015

Wow. What version of g++? And BH is current from CRAN? I don't think I saw that ...

@johnlaing
Copy link
Contributor Author

@johnlaing johnlaing commented Sep 16, 2015

BH current from Github:

jlaing@xenon:~$ g++ --version
g++ (Debian 5.2.1-16) 5.2.1 20150903
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

jlaing@xenon:~$ R -e 'packageDescription("BH")'
> packageDescription("BH")
Package: BH
Type: Package
Title: Boost C++ Header Files
Version: 1.58.0-1
Date: 2015-05-21
Author: Dirk Eddelbuettel, John W. Emerson and Michael J. Kane
Maintainer: Dirk Eddelbuettel <edd@debian.org>
Description: Boost provides free peer-reviewed portable C++ source libraries.  A large part of Boost is provided as C++ template code
               which is resolved entirely at compile-time without linking.  This package aims to provide the most useful subset of
               Boost libraries for template use among CRAN package. By placing these libraries in this package, we offer a more
               efficient distribution system for CRAN as replication of this code in the sources of other packages is avoided.
License: BSL-1.0
MailingList: Please send questions and comments regarding BH to
               http://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/boostheaders-devel
BugReports: https://github.com/eddelbuettel/bh/issues
NeedsCompilation: no
Packaged: 2015-09-15 17:30:11 UTC; jlaing
Built: R 3.2.2; ; 2015-09-15 17:31:14 UTC; unix

-- File: /usr/local/lib/R/site-library/BH/Meta/package.rds
@eddelbuettel
Copy link
Member

@eddelbuettel eddelbuettel commented Sep 16, 2015

Ah. So you are a compiler ahead of me. My default box is still Ubuntu.

Will fold this in. I suspect a lot of other BH-using packages may need it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

2 participants
You can’t perform that action at this time.