SL-18837: Make NamedTempFile revert to boost::function

from std::function, since some consumers still use (e.g.)
boost::phoenix::placeholders::arg1 to generate an inline callable.
master
Nat Goodspeed 2023-06-05 23:24:34 -04:00
parent ca510f6c29
commit aab769e9d7
1 changed files with 3 additions and 3 deletions

View File

@ -15,10 +15,10 @@
#include "llerror.h"
#include "stringize.h"
#include <string>
#include <boost/noncopyable.hpp>
#include <boost/function.hpp>
#include <boost/filesystem.hpp>
#include <boost/filesystem/fstream.hpp>
#include <functional>
#include <boost/noncopyable.hpp>
#include <iostream>
#include <sstream>
#include <string_view>
@ -41,7 +41,7 @@ public:
// Function that accepts an ostream ref and (presumably) writes stuff to
// it, e.g.:
// (boost::phoenix::placeholders::arg1 << "the value is " << 17 << '\n')
typedef std::function<void(std::ostream&)> Streamer;
typedef boost::function<void(std::ostream&)> Streamer;
NamedTempFile(const std::string_view& pfx,
const Streamer& func,