Opened 12 years ago
Closed 11 years ago
#41871 closed defect (fixed)
lparse @1.1.2_0: "hash" and "runtime_error" collide with std::hash and std::runtime_error
| Reported by: | f.zoboli25@… | Owned by: | nerdling (Jeremy Lavergne) |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | ports | Version: | |
| Keywords: | Cc: | ||
| Port: | lparse |
Description
ve got the next error while installing lparse port:
Terminal:
---> Configuring lparse ---> Building lparse ---> Staging lparse into destroot Error: org.macports.destroot for port lparse returned: command execution failed Please see the log file for port lparse for details: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_science_lparse/lparse/main.log To report a bug, follow the instructions in the guide: http://guide.macports.org/#project.tickets Error: Processing of port lparse failed
Attachments (1)
Change History (5)
Changed 12 years ago by f.zoboli25@…
comment:1 Changed 12 years ago by mf2k (Frank Schima)
| Owner: | changed from macports-tickets@… to snc@… |
|---|---|
| Port: | lparse added; Lparse removed |
In the future, please Cc the port maintainers (port info --maintainers lparse).
comment:2 Changed 12 years ago by f.zoboli25@…
| Cc: | f.zoboli25@… added |
|---|
comment:3 Changed 11 years ago by larryv (Lawrence Velázquez)
| Cc: | f.zoboli25@… removed |
|---|---|
| Summary: | Lparse @1.1.2 - error when staging lparse into destroot → lparse @1.1.2_0: "hash" and "runtime_error" collide with std::hash and std::runtime_error |
| Version: | 2.2.1 |
The problem is:
- The code defines “
hash” and “runtime_error” functions. - The modern C++ Standard Library defines
std::hashandstd::runtime_error. - The code uses “
using namespace std”.
A textbook case of why one should not import entire namespaces.
comment:4 Changed 11 years ago by larryv (Lawrence Velázquez)
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note: See
TracTickets for help on using
tickets.

Error log