MultipartEncoder icon indicating copy to clipboard operation
MultipartEncoder copied to clipboard

error: conversion to ‘int’ from ‘size_t {aka long unsigned int}’ may alter its value [-Werror=conversion]

Open PiseyYou opened this issue 4 years ago • 1 comments

first make error appead, after edit the file threadpool.h from size_t num_threads to int num_thread,

there are still some ways to change, in the file threadpool.cpp, three place to change type size_t to int, then make -j4 but the error appead this:

error: no matching function for call to ‘make_shared(std::reference_wrapper<boost::asio::io_context>)’

is there any way to solve the make error?

PiseyYou avatar Jul 09 '21 02:07 PiseyYou

The error should result from the stale cpprestsdk submodule. I just changed the submodule to master branch. Pls update and try again.

AndsonYe avatar Jul 23 '21 15:07 AndsonYe