gtorrent / gtorrent-core

Core library of gTorrent which handles everything but UI/UX
GNU General Public License v3.0
39 stars 12 forks source link

boost::int64_t -> int64_t #105

Closed benwaffle closed 9 years ago

fuyukaidesu commented 9 years ago

Ever heard of long ?

benwaffle commented 9 years ago

Ever heard of portability?

fuyukaidesu commented 9 years ago

Exactly ? The standard says these typedefs don't have to be defined. Also >talking about portability >in gtorrent

fuyukaidesu commented 9 years ago

>merged

whats the point of a PR if others don't review it

--ben

benwaffle commented 9 years ago
benwaffle commented 9 years ago

The standard says these typedefs don't have to be defined.

Even if that's true, the problem persists since boost uses those.

nyanpasu commented 9 years ago

minor changes you've seen it it built in travis it works with gt-gtk

I wonder who thought up of the "Three devs approval minimum" rule.

benwaffle commented 9 years ago

it was 2, no one follows it, and no one likes it

would you prefer that we started following it?

shinigamichan commented 9 years ago

Libtorrent internally uses libtorrent::size_type, defined in libtorrent/size_type.hpp for the return types of those functions, using a typedef to define this as boost::int64_t so getting rid of it just adds a slight overhead to convert and does nothing to reduce boost dependencies.

What we really should be doing is including it and using libtorrent::size_type itself, which is what I believe I suggested a while ago when someone was working on the code to display and format this since there was an overflow issue, but it was misinterpreted as directly use boost::int64_t.

benwaffle commented 9 years ago

ok