# Fix Boost deprecation warning in afw

XMLWordPrintable

#### Details

• Type: Story
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
• Story Points:
3
• Sprint:
AP S21-3 (February)
• Team:
• Urgent?:
No

#### Description

Building afw with GCC emits the following warning:

 In file included from tests/statisticsSpeed.cc:37:0: /software/lsstsw/stack_20200922/conda/miniconda3-py37_4.8.2/envs/lsst-scipipe/include/boost/timer.hpp:21:70: note: #pragma message: This header is deprecated. Use the facilities in instead.  BOOST_HEADER_DEPRECATED( "the facilities in " ) 

These changes involve moving from an outdated API to a newer one. The code changes are straightforward (see attached branch), but I get linker errors for all new methods (Boost Timer is a compiled library). I'm therefore creating a separate ticket for investigating this.

#### Activity

Hide
Krzysztof Findeisen added a comment -

It looks like the Boost libraries to be linked against are defined in https://github.com/lsst/sconsUtils/tree/master/configs; i.e. they will become available for any C++ project, not just afw. That makes this more than just a trivial API migration.

Show
Krzysztof Findeisen added a comment - It looks like the Boost libraries to be linked against are defined in https://github.com/lsst/sconsUtils/tree/master/configs ; i.e. they will become available for any C++ project, not just afw . That makes this more than just a trivial API migration.
Hide
Brian Van Klaveren added a comment -

looks good, from the github conversation, boost timer is only used, and likely to only be used, during unit testing, and it was added as such.

Show
Brian Van Klaveren added a comment - looks good, from the github conversation, boost timer is only used, and likely to only be used, during unit testing, and it was added as such.
Hide
Krzysztof Findeisen added a comment -

Sorry, did you also look at afw#569? It seems to have been missed by Jira.

Show
Krzysztof Findeisen added a comment - Sorry, did you also look at afw#569 ? It seems to have been missed by Jira.

#### People

Assignee:
Krzysztof Findeisen
Reporter:
Krzysztof Findeisen
Reviewers:
Brian Van Klaveren
Watchers:
Brian Van Klaveren, Krzysztof Findeisen