Skip to content

Commit

Permalink
XMake boost::Placeholders::_1 visible
Browse files Browse the repository at this point in the history
  • Loading branch information
jwakely authored and ahlers committed Oct 14, 2021
1 parent 1b4eb08 commit c5ba3cb
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 2 deletions.
5 changes: 4 additions & 1 deletion xs/src/libslic3r/GCodeSender.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,17 @@
#include <string>
#include <vector>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <boost/thread.hpp>
#include <boost/core/noncopyable.hpp>

namespace Slic3r {

namespace asio = boost::asio;

using boost::placeholders::_1;
using boost::placeholders::_2;

class GCodeSender : private boost::noncopyable {
public:
GCodeSender();
Expand Down
5 changes: 4 additions & 1 deletion xs/src/libslic3r/GCodeTimeEstimator.cpp
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#include "GCodeTimeEstimator.hpp"
#include <boost/bind.hpp>
#include <boost/bind/bind.hpp>
#include <cmath>

namespace Slic3r {

using boost::placeholders::_1;
using boost::placeholders::_2;

void
GCodeTimeEstimator::parse(const std::string &gcode)
{
Expand Down
3 changes: 3 additions & 0 deletions xs/src/libslic3r/PrintObject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,14 @@
#include "BoundingBox.hpp"
#include "ClipperUtils.hpp"
#include "Geometry.hpp"
#include <boost/bind/bind.hpp>
#include <algorithm>
#include <vector>

namespace Slic3r {

using boost::placeholders::_1;

PrintObject::PrintObject(Print* print, ModelObject* model_object, const BoundingBoxf3 &modobj_bbox)
: typed_slices(false),
_print(print),
Expand Down
3 changes: 3 additions & 0 deletions xs/src/libslic3r/SLAPrint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
#include <iostream>
#include <complex>
#include <cstdio>
#include <boost/bind/bind.hpp>

namespace Slic3r {

using boost::placeholders::_1;

void
SLAPrint::slice()
{
Expand Down
3 changes: 3 additions & 0 deletions xs/src/libslic3r/TriangleMesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
#include <stdexcept>
#include <boost/config.hpp>
#include <boost/nowide/convert.hpp>
#include <boost/bind/bind.hpp>

#ifdef SLIC3R_DEBUG
#include "SVG.hpp"
#endif

namespace Slic3r {

using boost::placeholders::_1;

TriangleMesh::TriangleMesh()
: repaired(false)
{
Expand Down

0 comments on commit c5ba3cb

Please sign in to comment.