Opened 4 years ago

Last modified 3 years ago

#10962 new Bugs

libs/pool/test/test_bug_5526.cpp fails to compile due to missing header

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: Marshall Clow
Milestone: To Be Determined Component: pool
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

Test libs/pool/test/test_bug_5526.cpp fails to compile with oracle Solaris Studio12.4 on Solaris11.2. The error message is
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: auto_ptr is not a member of std.
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: A declaration does not specify a tag or an identifier.
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: Use ";" to terminate declarations.
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: A declaration was expected instead of "<".
"../libs/pool/test/test_bug_5526.cpp", line 29: Warning: declarator required in declaration.
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: Use ";" to terminate declarations.
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: A declaration was expected instead of ">".
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: aptr is not defined.
"../libs/pool/test/test_bug_5526.cpp", line 29: Error: A declaration does not specify a tag or an identifier.
"../libs/pool/test/test_bug_5526.cpp", line 33: Error: aptr is not defined.
9 Error(s) and 1 Warning(s) detected.

Adding
#include <memory>
to the test seems to resolve the issue.

The diff's are
diff ../libs/pool/test/test_bug_5526.cpp ../libs/pool/test/test_bug_5526.cpp_orig
10d9
< #include <memory>

Change History (1)

comment:1 Changed 3 years ago by Marshall Clow

Owner: changed from Chris Newbold to Marshall Clow

Committed to -develop in 3519294895a9ad350bfce8397f3dff49dd9a9941

Note: See TracTickets for help on using tickets.