Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
mantid
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mantidproject
mantid
Commits
b7ecbd55
Commit
b7ecbd55
authored
10 years ago
by
Gigg, Martyn Anthony
Committed by
Anton Piccardo-Selg
9 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix ambiguous overload error with boost 1.53
Refs #9349
parent
5e0378b4
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Code/Mantid/Framework/Algorithms/src/CalculateTransmission.cpp
+8
-1
8 additions, 1 deletion
...Mantid/Framework/Algorithms/src/CalculateTransmission.cpp
with
8 additions
and
1 deletion
Code/Mantid/Framework/Algorithms/src/CalculateTransmission.cpp
+
8
−
1
View file @
b7ecbd55
...
@@ -233,9 +233,16 @@ API::MatrixWorkspace_sptr CalculateTransmission::extractSpectra(API::MatrixWorks
...
@@ -233,9 +233,16 @@ API::MatrixWorkspace_sptr CalculateTransmission::extractSpectra(API::MatrixWorks
{
{
// Compile a comma separated list of indices that we can pass to SumSpectra.
// Compile a comma separated list of indices that we can pass to SumSpectra.
std
::
vector
<
std
::
string
>
indexStrings
(
indices
.
size
());
std
::
vector
<
std
::
string
>
indexStrings
(
indices
.
size
());
// A bug in boost 1.53: https://svn.boost.org/trac/boost/ticket/7421
// means that lexical_cast cannot be used directly as the call is ambiguous
// so we need to define a function pointer that can resolve the overloaded
// lexical_cast function
typedef
std
::
string
(
*
from_size_t
)(
const
size_t
&
);
std
::
transform
(
std
::
transform
(
indices
.
begin
(),
indices
.
end
(),
indices
.
begin
(),
indices
.
end
(),
indexStrings
.
begin
(),
boost
::
lexical_cast
<
std
::
string
,
size_t
>
);
indexStrings
.
begin
(),
(
from_size_t
)
boost
::
lexical_cast
<
std
::
string
,
size_t
>
);
const
std
::
string
commaIndexList
=
boost
::
algorithm
::
join
(
indexStrings
,
","
);
const
std
::
string
commaIndexList
=
boost
::
algorithm
::
join
(
indexStrings
,
","
);
double
start
=
m_done
;
double
start
=
m_done
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment